AWS SDK for C++  1.9.109
AWS SDK for C++
S3Resource.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Snowball
25 {
26 namespace Model
27 {
28 
40  {
41  public:
46 
47 
51  inline const Aws::String& GetBucketArn() const{ return m_bucketArn; }
52 
56  inline bool BucketArnHasBeenSet() const { return m_bucketArnHasBeenSet; }
57 
61  inline void SetBucketArn(const Aws::String& value) { m_bucketArnHasBeenSet = true; m_bucketArn = value; }
62 
66  inline void SetBucketArn(Aws::String&& value) { m_bucketArnHasBeenSet = true; m_bucketArn = std::move(value); }
67 
71  inline void SetBucketArn(const char* value) { m_bucketArnHasBeenSet = true; m_bucketArn.assign(value); }
72 
76  inline S3Resource& WithBucketArn(const Aws::String& value) { SetBucketArn(value); return *this;}
77 
81  inline S3Resource& WithBucketArn(Aws::String&& value) { SetBucketArn(std::move(value)); return *this;}
82 
86  inline S3Resource& WithBucketArn(const char* value) { SetBucketArn(value); return *this;}
87 
88 
95  inline const KeyRange& GetKeyRange() const{ return m_keyRange; }
96 
103  inline bool KeyRangeHasBeenSet() const { return m_keyRangeHasBeenSet; }
104 
111  inline void SetKeyRange(const KeyRange& value) { m_keyRangeHasBeenSet = true; m_keyRange = value; }
112 
119  inline void SetKeyRange(KeyRange&& value) { m_keyRangeHasBeenSet = true; m_keyRange = std::move(value); }
120 
127  inline S3Resource& WithKeyRange(const KeyRange& value) { SetKeyRange(value); return *this;}
128 
135  inline S3Resource& WithKeyRange(KeyRange&& value) { SetKeyRange(std::move(value)); return *this;}
136 
137 
143  inline const Aws::Vector<TargetOnDeviceService>& GetTargetOnDeviceServices() const{ return m_targetOnDeviceServices; }
144 
150  inline bool TargetOnDeviceServicesHasBeenSet() const { return m_targetOnDeviceServicesHasBeenSet; }
151 
157  inline void SetTargetOnDeviceServices(const Aws::Vector<TargetOnDeviceService>& value) { m_targetOnDeviceServicesHasBeenSet = true; m_targetOnDeviceServices = value; }
158 
164  inline void SetTargetOnDeviceServices(Aws::Vector<TargetOnDeviceService>&& value) { m_targetOnDeviceServicesHasBeenSet = true; m_targetOnDeviceServices = std::move(value); }
165 
171  inline S3Resource& WithTargetOnDeviceServices(const Aws::Vector<TargetOnDeviceService>& value) { SetTargetOnDeviceServices(value); return *this;}
172 
178  inline S3Resource& WithTargetOnDeviceServices(Aws::Vector<TargetOnDeviceService>&& value) { SetTargetOnDeviceServices(std::move(value)); return *this;}
179 
185  inline S3Resource& AddTargetOnDeviceServices(const TargetOnDeviceService& value) { m_targetOnDeviceServicesHasBeenSet = true; m_targetOnDeviceServices.push_back(value); return *this; }
186 
192  inline S3Resource& AddTargetOnDeviceServices(TargetOnDeviceService&& value) { m_targetOnDeviceServicesHasBeenSet = true; m_targetOnDeviceServices.push_back(std::move(value)); return *this; }
193 
194  private:
195 
196  Aws::String m_bucketArn;
197  bool m_bucketArnHasBeenSet;
198 
199  KeyRange m_keyRange;
200  bool m_keyRangeHasBeenSet;
201 
202  Aws::Vector<TargetOnDeviceService> m_targetOnDeviceServices;
203  bool m_targetOnDeviceServicesHasBeenSet;
204  };
205 
206 } // namespace Model
207 } // namespace Snowball
208 } // namespace Aws
Aws::Snowball::Model::S3Resource::SetKeyRange
void SetKeyRange(KeyRange &&value)
Definition: S3Resource.h:119
Aws::Snowball::Model::S3Resource
Definition: S3Resource.h:40
Aws::Snowball::Model::S3Resource::S3Resource
S3Resource()
TargetOnDeviceService.h
Aws::Snowball::Model::S3Resource::GetBucketArn
const Aws::String & GetBucketArn() const
Definition: S3Resource.h:51
KeyRange.h
Aws::Snowball::Model::S3Resource::WithBucketArn
S3Resource & WithBucketArn(const char *value)
Definition: S3Resource.h:86
Aws::Snowball::Model::S3Resource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Snowball::Model::S3Resource::SetKeyRange
void SetKeyRange(const KeyRange &value)
Definition: S3Resource.h:111
Aws::Snowball::Model::S3Resource::BucketArnHasBeenSet
bool BucketArnHasBeenSet() const
Definition: S3Resource.h:56
Aws::Snowball::Model::S3Resource::operator=
S3Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Snowball::Model::S3Resource::SetTargetOnDeviceServices
void SetTargetOnDeviceServices(Aws::Vector< TargetOnDeviceService > &&value)
Definition: S3Resource.h:164
Aws::Snowball::Model::S3Resource::S3Resource
S3Resource(Aws::Utils::Json::JsonView jsonValue)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Snowball::Model::S3Resource::WithTargetOnDeviceServices
S3Resource & WithTargetOnDeviceServices(Aws::Vector< TargetOnDeviceService > &&value)
Definition: S3Resource.h:178
AWSVector.h
Aws::Snowball::Model::S3Resource::WithBucketArn
S3Resource & WithBucketArn(Aws::String &&value)
Definition: S3Resource.h:81
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
Aws::Snowball::Model::S3Resource::AddTargetOnDeviceServices
S3Resource & AddTargetOnDeviceServices(const TargetOnDeviceService &value)
Definition: S3Resource.h:185
Aws::Snowball::Model::S3Resource::GetKeyRange
const KeyRange & GetKeyRange() const
Definition: S3Resource.h:95
Aws::Snowball::Model::S3Resource::GetTargetOnDeviceServices
const Aws::Vector< TargetOnDeviceService > & GetTargetOnDeviceServices() const
Definition: S3Resource.h:143
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Snowball::Model::S3Resource::SetBucketArn
void SetBucketArn(const char *value)
Definition: S3Resource.h:71
Aws::Snowball::Model::S3Resource::WithBucketArn
S3Resource & WithBucketArn(const Aws::String &value)
Definition: S3Resource.h:76
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::S3Resource::KeyRangeHasBeenSet
bool KeyRangeHasBeenSet() const
Definition: S3Resource.h:103
Aws::Snowball::Model::S3Resource::WithTargetOnDeviceServices
S3Resource & WithTargetOnDeviceServices(const Aws::Vector< TargetOnDeviceService > &value)
Definition: S3Resource.h:171
Aws::Snowball::Model::KeyRange
Definition: KeyRange.h:36
Aws::Snowball::Model::S3Resource::SetBucketArn
void SetBucketArn(const Aws::String &value)
Definition: S3Resource.h:61
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Snowball::Model::S3Resource::WithKeyRange
S3Resource & WithKeyRange(KeyRange &&value)
Definition: S3Resource.h:135
Aws::Snowball::Model::S3Resource::TargetOnDeviceServicesHasBeenSet
bool TargetOnDeviceServicesHasBeenSet() const
Definition: S3Resource.h:150
Aws::Snowball::Model::S3Resource::WithKeyRange
S3Resource & WithKeyRange(const KeyRange &value)
Definition: S3Resource.h:127
Aws::Snowball::Model::TargetOnDeviceService
Definition: TargetOnDeviceService.h:36
Aws::Snowball::Model::S3Resource::AddTargetOnDeviceServices
S3Resource & AddTargetOnDeviceServices(TargetOnDeviceService &&value)
Definition: S3Resource.h:192
Snowball_EXPORTS.h
Aws::Snowball::Model::S3Resource::SetTargetOnDeviceServices
void SetTargetOnDeviceServices(const Aws::Vector< TargetOnDeviceService > &value)
Definition: S3Resource.h:157
Aws::Snowball::Model::S3Resource::SetBucketArn
void SetBucketArn(Aws::String &&value)
Definition: S3Resource.h:66