AWS SDK for C++  1.9.124
AWS SDK for C++
S3Location.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetBucket() const{ return m_bucket; }
44 
48  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
49 
53  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
54 
58  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
59 
63  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
64 
68  inline S3Location& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
69 
73  inline S3Location& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
74 
78  inline S3Location& WithBucket(const char* value) { SetBucket(value); return *this;}
79 
80 
84  inline const Aws::String& GetKey() const{ return m_key; }
85 
89  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
90 
94  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
95 
99  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
100 
104  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
105 
109  inline S3Location& WithKey(const Aws::String& value) { SetKey(value); return *this;}
110 
114  inline S3Location& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
115 
119  inline S3Location& WithKey(const char* value) { SetKey(value); return *this;}
120 
121 
125  inline const Aws::String& GetVersion() const{ return m_version; }
126 
130  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
131 
135  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
136 
140  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
141 
145  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
146 
150  inline S3Location& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
151 
155  inline S3Location& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
156 
160  inline S3Location& WithVersion(const char* value) { SetVersion(value); return *this;}
161 
162  private:
163 
164  Aws::String m_bucket;
165  bool m_bucketHasBeenSet;
166 
167  Aws::String m_key;
168  bool m_keyHasBeenSet;
169 
170  Aws::String m_version;
171  bool m_versionHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace IoT
176 } // namespace Aws
Aws::IoT::Model::S3Location::WithKey
S3Location & WithKey(Aws::String &&value)
Definition: S3Location.h:114
Aws::IoT::Model::S3Location::S3Location
S3Location(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::S3Location::SetVersion
void SetVersion(const char *value)
Definition: S3Location.h:145
Aws::IoT::Model::S3Location::WithVersion
S3Location & WithVersion(const char *value)
Definition: S3Location.h:160
Aws::IoT::Model::S3Location::S3Location
S3Location()
Aws::IoT::Model::S3Location::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: S3Location.h:89
Aws::IoT::Model::S3Location::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::S3Location::WithVersion
S3Location & WithVersion(Aws::String &&value)
Definition: S3Location.h:155
Aws::IoT::Model::S3Location::SetBucket
void SetBucket(const char *value)
Definition: S3Location.h:63
Aws::IoT::Model::S3Location::SetKey
void SetKey(const Aws::String &value)
Definition: S3Location.h:94
Aws::IoT::Model::S3Location::GetKey
const Aws::String & GetKey() const
Definition: S3Location.h:84
Aws::IoT::Model::S3Location::GetBucket
const Aws::String & GetBucket() const
Definition: S3Location.h:43
Aws::IoT::Model::S3Location::WithKey
S3Location & WithKey(const Aws::String &value)
Definition: S3Location.h:109
Aws::IoT::Model::S3Location::WithBucket
S3Location & WithBucket(Aws::String &&value)
Definition: S3Location.h:73
Aws::IoT::Model::S3Location
Definition: S3Location.h:32
Aws::IoT::Model::S3Location::SetKey
void SetKey(const char *value)
Definition: S3Location.h:104
Aws::IoT::Model::S3Location::GetVersion
const Aws::String & GetVersion() const
Definition: S3Location.h:125
Aws::IoT::Model::S3Location::SetBucket
void SetBucket(Aws::String &&value)
Definition: S3Location.h:58
Aws::IoT::Model::S3Location::SetKey
void SetKey(Aws::String &&value)
Definition: S3Location.h:99
Aws::IoT::Model::S3Location::operator=
S3Location & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::S3Location::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: S3Location.h:130
Aws::IoT::Model::S3Location::WithVersion
S3Location & WithVersion(const Aws::String &value)
Definition: S3Location.h:150
Aws::IoT::Model::S3Location::WithBucket
S3Location & WithBucket(const Aws::String &value)
Definition: S3Location.h:68
Aws::IoT::Model::S3Location::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: S3Location.h:48
Aws::IoT::Model::S3Location::SetVersion
void SetVersion(Aws::String &&value)
Definition: S3Location.h:140
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::S3Location::SetVersion
void SetVersion(const Aws::String &value)
Definition: S3Location.h:135
Aws::IoT::Model::S3Location::SetBucket
void SetBucket(const Aws::String &value)
Definition: S3Location.h:53
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::S3Location::WithBucket
S3Location & WithBucket(const char *value)
Definition: S3Location.h:78
Aws::IoT::Model::S3Location::WithKey
S3Location & WithKey(const char *value)
Definition: S3Location.h:119
IoT_EXPORTS.h