compute  v1
backend_bucket_cdn_policy.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: 2019-04-20, 05:56:52 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Compute Engine API (compute/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 213
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_COMPUTE_API_BACKEND_BUCKET_CDN_POLICY_H_
31 #define GOOGLE_COMPUTE_API_BACKEND_BUCKET_CDN_POLICY_H_
32 
33 #include <string>
34 #include "googleapis/base/integral_types.h"
35 #include "googleapis/base/macros.h"
36 #include "googleapis/client/data/jsoncpp_data.h"
37 #include "googleapis/strings/stringpiece.h"
38 
39 namespace Json {
40 class Value;
41 } // namespace Json
42 
43 namespace google_compute_api {
44 using namespace googleapis;
45 
51 class BackendBucketCdnPolicy : public client::JsonCppData {
52  public:
58  static BackendBucketCdnPolicy* New();
59 
65  explicit BackendBucketCdnPolicy(const Json::Value& storage);
66 
72  explicit BackendBucketCdnPolicy(Json::Value* storage);
73 
77  virtual ~BackendBucketCdnPolicy();
78 
84  const StringPiece GetTypeName() const {
85  return StringPiece("google_compute_api::BackendBucketCdnPolicy");
86  }
87 
95  return Storage().isMember("signedUrlCacheMaxAgeSec");
96  }
97 
102  MutableStorage()->removeMember("signedUrlCacheMaxAgeSec");
103  }
104 
105 
110  const Json::Value& storage = Storage("signedUrlCacheMaxAgeSec");
111  return client::JsonValueToCppValueHelper<int64 >(storage);
112  }
113 
128  client::SetJsonValueFromCppValueHelper<int64 >(
129  value, MutableStorage("signedUrlCacheMaxAgeSec"));
130  }
131 
138  return Storage().isMember("signedUrlKeyNames");
139  }
140 
145  MutableStorage()->removeMember("signedUrlKeyNames");
146  }
147 
148 
153  const client::JsonCppArray<string > get_signed_url_key_names() const {
154  const Json::Value& storage = Storage("signedUrlKeyNames");
155  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
156  }
157 
166  client::JsonCppArray<string > mutable_signedUrlKeyNames() {
167  Json::Value* storage = MutableStorage("signedUrlKeyNames");
168  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
169  }
170 
171  private:
172  void operator=(const BackendBucketCdnPolicy&);
173 }; // BackendBucketCdnPolicy
174 } // namespace google_compute_api
175 #endif // GOOGLE_COMPUTE_API_BACKEND_BUCKET_CDN_POLICY_H_
int64 get_signed_url_cache_max_age_sec() const
Definition: backend_bucket_cdn_policy.h:109
const StringPiece GetTypeName() const
Definition: backend_bucket_cdn_policy.h:84
client::JsonCppArray< string > mutable_signedUrlKeyNames()
Definition: backend_bucket_cdn_policy.h:166
void clear_signed_url_cache_max_age_sec()
Definition: backend_bucket_cdn_policy.h:101
Definition: backend_bucket_cdn_policy.h:51
bool has_signed_url_cache_max_age_sec() const
Definition: backend_bucket_cdn_policy.h:94
bool has_signed_url_key_names() const
Definition: backend_bucket_cdn_policy.h:137
void set_signed_url_cache_max_age_sec(int64 value)
Definition: backend_bucket_cdn_policy.h:127
Definition: accelerator_config.h:39
void clear_signed_url_key_names()
Definition: backend_bucket_cdn_policy.h:144
Definition: accelerator_config.cc:41
const client::JsonCppArray< string > get_signed_url_key_names() const
Definition: backend_bucket_cdn_policy.h:153