AWS SDK for C++  0.14.3
AWS SDK for C++
S3Location.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace CodeDeploy
30 {
31 namespace Model
32 {
33 
39  {
40  public:
41  S3Location();
42  S3Location(const Aws::Utils::Json::JsonValue& jsonValue);
43  S3Location& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline const Aws::String& GetBucket() const{ return m_bucket; }
51 
56  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
57 
62  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = value; }
63 
68  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
69 
74  inline S3Location& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
75 
80  inline S3Location& WithBucket(Aws::String&& value) { SetBucket(value); return *this;}
81 
86  inline S3Location& WithBucket(const char* value) { SetBucket(value); return *this;}
87 
92  inline const Aws::String& GetKey() const{ return m_key; }
93 
98  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
99 
104  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
105 
110  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
111 
116  inline S3Location& WithKey(const Aws::String& value) { SetKey(value); return *this;}
117 
122  inline S3Location& WithKey(Aws::String&& value) { SetKey(value); return *this;}
123 
128  inline S3Location& WithKey(const char* value) { SetKey(value); return *this;}
129 
135  inline const BundleType& GetBundleType() const{ return m_bundleType; }
136 
142  inline void SetBundleType(const BundleType& value) { m_bundleTypeHasBeenSet = true; m_bundleType = value; }
143 
149  inline void SetBundleType(BundleType&& value) { m_bundleTypeHasBeenSet = true; m_bundleType = value; }
150 
156  inline S3Location& WithBundleType(const BundleType& value) { SetBundleType(value); return *this;}
157 
163  inline S3Location& WithBundleType(BundleType&& value) { SetBundleType(value); return *this;}
164 
170  inline const Aws::String& GetVersion() const{ return m_version; }
171 
177  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
178 
184  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = value; }
185 
191  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
192 
198  inline S3Location& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
199 
205  inline S3Location& WithVersion(Aws::String&& value) { SetVersion(value); return *this;}
206 
212  inline S3Location& WithVersion(const char* value) { SetVersion(value); return *this;}
213 
219  inline const Aws::String& GetETag() const{ return m_eTag; }
220 
226  inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; }
227 
233  inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = value; }
234 
240  inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); }
241 
247  inline S3Location& WithETag(const Aws::String& value) { SetETag(value); return *this;}
248 
254  inline S3Location& WithETag(Aws::String&& value) { SetETag(value); return *this;}
255 
261  inline S3Location& WithETag(const char* value) { SetETag(value); return *this;}
262 
263  private:
264  Aws::String m_bucket;
265  bool m_bucketHasBeenSet;
266  Aws::String m_key;
267  bool m_keyHasBeenSet;
268  BundleType m_bundleType;
269  bool m_bundleTypeHasBeenSet;
270  Aws::String m_version;
271  bool m_versionHasBeenSet;
272  Aws::String m_eTag;
273  bool m_eTagHasBeenSet;
274  };
275 
276 } // namespace Model
277 } // namespace CodeDeploy
278 } // namespace Aws
S3Location & WithKey(const char *value)
Definition: S3Location.h:128
S3Location & WithKey(Aws::String &&value)
Definition: S3Location.h:122
const Aws::String & GetETag() const
Definition: S3Location.h:219
S3Location & WithETag(const Aws::String &value)
Definition: S3Location.h:247
void SetETag(const Aws::String &value)
Definition: S3Location.h:226
void SetBucket(Aws::String &&value)
Definition: S3Location.h:62
void SetBundleType(const BundleType &value)
Definition: S3Location.h:142
void SetKey(const Aws::String &value)
Definition: S3Location.h:98
void SetBundleType(BundleType &&value)
Definition: S3Location.h:149
S3Location & WithBucket(const Aws::String &value)
Definition: S3Location.h:74
void SetKey(const char *value)
Definition: S3Location.h:110
S3Location & WithBundleType(BundleType &&value)
Definition: S3Location.h:163
S3Location & WithBucket(const char *value)
Definition: S3Location.h:86
void SetETag(Aws::String &&value)
Definition: S3Location.h:233
const Aws::String & GetVersion() const
Definition: S3Location.h:170
void SetBucket(const Aws::String &value)
Definition: S3Location.h:56
S3Location & WithETag(Aws::String &&value)
Definition: S3Location.h:254
const Aws::String & GetKey() const
Definition: S3Location.h:92
void SetVersion(const Aws::String &value)
Definition: S3Location.h:177
#define AWS_CODEDEPLOY_API
S3Location & WithVersion(const Aws::String &value)
Definition: S3Location.h:198
const Aws::String & GetBucket() const
Definition: S3Location.h:50
const BundleType & GetBundleType() const
Definition: S3Location.h:135
void SetKey(Aws::String &&value)
Definition: S3Location.h:104
void SetETag(const char *value)
Definition: S3Location.h:240
void SetVersion(const char *value)
Definition: S3Location.h:191
void SetBucket(const char *value)
Definition: S3Location.h:68
S3Location & WithVersion(Aws::String &&value)
Definition: S3Location.h:205
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
S3Location & WithKey(const Aws::String &value)
Definition: S3Location.h:116
void SetVersion(Aws::String &&value)
Definition: S3Location.h:184
S3Location & WithETag(const char *value)
Definition: S3Location.h:261
S3Location & WithBucket(Aws::String &&value)
Definition: S3Location.h:80
S3Location & WithVersion(const char *value)
Definition: S3Location.h:212
JSON (JavaScript Object Notation).
S3Location & WithBundleType(const BundleType &value)
Definition: S3Location.h:156