youtube  v3
live_broadcast_status.h
1 // Copyright 2010 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 
15 // This code was generated by google-apis-code-generator 1.5.1
16 // Build date: 2018-10-08 17:45:39 UTC
17 // on: 2020-02-27, 01:46:08 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // YouTube Data API (youtube/v3)
24 // Generated from:
25 // Version: v3
26 // Revision: 222
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_YOUTUBE_API_LIVE_BROADCAST_STATUS_H_
31 #define GOOGLE_YOUTUBE_API_LIVE_BROADCAST_STATUS_H_
32 
33 #include <string>
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/strings/stringpiece.h"
37 
38 namespace Json {
39 class Value;
40 } // namespace Json
41 
42 namespace google_youtube_api {
43 using namespace googleapis;
44 
50 class LiveBroadcastStatus : public client::JsonCppData {
51  public:
57  static LiveBroadcastStatus* New();
58 
64  explicit LiveBroadcastStatus(const Json::Value& storage);
65 
71  explicit LiveBroadcastStatus(Json::Value* storage);
72 
76  virtual ~LiveBroadcastStatus();
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_youtube_api::LiveBroadcastStatus");
85  }
86 
92  bool has_life_cycle_status() const {
93  return Storage().isMember("lifeCycleStatus");
94  }
95 
100  MutableStorage()->removeMember("lifeCycleStatus");
101  }
102 
103 
107  const StringPiece get_life_cycle_status() const {
108  const Json::Value& v = Storage("lifeCycleStatus");
109  if (v == Json::Value::null) return StringPiece("");
110  return StringPiece(v.asCString());
111  }
112 
121  void set_life_cycle_status(const StringPiece& value) {
122  *MutableStorage("lifeCycleStatus") = value.data();
123  }
124 
131  return Storage().isMember("liveBroadcastPriority");
132  }
133 
138  MutableStorage()->removeMember("liveBroadcastPriority");
139  }
140 
141 
145  const StringPiece get_live_broadcast_priority() const {
146  const Json::Value& v = Storage("liveBroadcastPriority");
147  if (v == Json::Value::null) return StringPiece("");
148  return StringPiece(v.asCString());
149  }
150 
158  void set_live_broadcast_priority(const StringPiece& value) {
159  *MutableStorage("liveBroadcastPriority") = value.data();
160  }
161 
167  bool has_made_for_kids() const {
168  return Storage().isMember("madeForKids");
169  }
170 
175  MutableStorage()->removeMember("madeForKids");
176  }
177 
178 
182  bool get_made_for_kids() const {
183  const Json::Value& storage = Storage("madeForKids");
184  return client::JsonValueToCppValueHelper<bool >(storage);
185  }
186 
191  void set_made_for_kids(bool value) {
192  client::SetJsonValueFromCppValueHelper<bool >(
193  value, MutableStorage("madeForKids"));
194  }
195 
201  bool has_privacy_status() const {
202  return Storage().isMember("privacyStatus");
203  }
204 
209  MutableStorage()->removeMember("privacyStatus");
210  }
211 
212 
216  const StringPiece get_privacy_status() const {
217  const Json::Value& v = Storage("privacyStatus");
218  if (v == Json::Value::null) return StringPiece("");
219  return StringPiece(v.asCString());
220  }
221 
233  void set_privacy_status(const StringPiece& value) {
234  *MutableStorage("privacyStatus") = value.data();
235  }
236 
242  bool has_recording_status() const {
243  return Storage().isMember("recordingStatus");
244  }
245 
250  MutableStorage()->removeMember("recordingStatus");
251  }
252 
253 
257  const StringPiece get_recording_status() const {
258  const Json::Value& v = Storage("recordingStatus");
259  if (v == Json::Value::null) return StringPiece("");
260  return StringPiece(v.asCString());
261  }
262 
270  void set_recording_status(const StringPiece& value) {
271  *MutableStorage("recordingStatus") = value.data();
272  }
273 
281  return Storage().isMember("selfDeclaredMadeForKids");
282  }
283 
288  MutableStorage()->removeMember("selfDeclaredMadeForKids");
289  }
290 
291 
296  const Json::Value& storage = Storage("selfDeclaredMadeForKids");
297  return client::JsonValueToCppValueHelper<bool >(storage);
298  }
299 
305  client::SetJsonValueFromCppValueHelper<bool >(
306  value, MutableStorage("selfDeclaredMadeForKids"));
307  }
308 
309  private:
310  void operator=(const LiveBroadcastStatus&);
311 }; // LiveBroadcastStatus
312 } // namespace google_youtube_api
313 #endif // GOOGLE_YOUTUBE_API_LIVE_BROADCAST_STATUS_H_
void set_made_for_kids(bool value)
Definition: live_broadcast_status.h:191
Definition: live_broadcast_status.h:50
Definition: access_policy.cc:40
void set_self_declared_made_for_kids(bool value)
Definition: live_broadcast_status.h:304
const StringPiece get_privacy_status() const
Definition: live_broadcast_status.h:216
void set_life_cycle_status(const StringPiece &value)
Definition: live_broadcast_status.h:121
const StringPiece get_live_broadcast_priority() const
Definition: live_broadcast_status.h:145
bool has_made_for_kids() const
Definition: live_broadcast_status.h:167
void clear_life_cycle_status()
Definition: live_broadcast_status.h:99
const StringPiece get_life_cycle_status() const
Definition: live_broadcast_status.h:107
void clear_made_for_kids()
Definition: live_broadcast_status.h:174
void clear_recording_status()
Definition: live_broadcast_status.h:249
void clear_privacy_status()
Definition: live_broadcast_status.h:208
void set_privacy_status(const StringPiece &value)
Definition: live_broadcast_status.h:233
void clear_self_declared_made_for_kids()
Definition: live_broadcast_status.h:287
const StringPiece GetTypeName() const
Definition: live_broadcast_status.h:83
const StringPiece get_recording_status() const
Definition: live_broadcast_status.h:257
Definition: access_policy.h:38
bool has_self_declared_made_for_kids() const
Definition: live_broadcast_status.h:280
bool has_recording_status() const
Definition: live_broadcast_status.h:242
void clear_live_broadcast_priority()
Definition: live_broadcast_status.h:137
void set_live_broadcast_priority(const StringPiece &value)
Definition: live_broadcast_status.h:158
bool has_live_broadcast_priority() const
Definition: live_broadcast_status.h:130
bool has_privacy_status() const
Definition: live_broadcast_status.h:201
bool has_life_cycle_status() const
Definition: live_broadcast_status.h:92
void set_recording_status(const StringPiece &value)
Definition: live_broadcast_status.h:270
bool get_self_declared_made_for_kids() const
Definition: live_broadcast_status.h:295
bool get_made_for_kids() const
Definition: live_broadcast_status.h:182