AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3Resource.h
1
6#pragma once
7#include <aws/snowball/Snowball_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/snowball/model/KeyRange.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/snowball/model/TargetOnDeviceService.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Snowball
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_SNOWBALL_API S3Resource();
43 AWS_SNOWBALL_API S3Resource(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SNOWBALL_API S3Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetBucketArn() const{ return m_bucketArn; }
53 inline bool BucketArnHasBeenSet() const { return m_bucketArnHasBeenSet; }
54 inline void SetBucketArn(const Aws::String& value) { m_bucketArnHasBeenSet = true; m_bucketArn = value; }
55 inline void SetBucketArn(Aws::String&& value) { m_bucketArnHasBeenSet = true; m_bucketArn = std::move(value); }
56 inline void SetBucketArn(const char* value) { m_bucketArnHasBeenSet = true; m_bucketArn.assign(value); }
57 inline S3Resource& WithBucketArn(const Aws::String& value) { SetBucketArn(value); return *this;}
58 inline S3Resource& WithBucketArn(Aws::String&& value) { SetBucketArn(std::move(value)); return *this;}
59 inline S3Resource& WithBucketArn(const char* value) { SetBucketArn(value); return *this;}
61
63
69 inline const KeyRange& GetKeyRange() const{ return m_keyRange; }
70 inline bool KeyRangeHasBeenSet() const { return m_keyRangeHasBeenSet; }
71 inline void SetKeyRange(const KeyRange& value) { m_keyRangeHasBeenSet = true; m_keyRange = value; }
72 inline void SetKeyRange(KeyRange&& value) { m_keyRangeHasBeenSet = true; m_keyRange = std::move(value); }
73 inline S3Resource& WithKeyRange(const KeyRange& value) { SetKeyRange(value); return *this;}
74 inline S3Resource& WithKeyRange(KeyRange&& value) { SetKeyRange(std::move(value)); return *this;}
76
78
83 inline const Aws::Vector<TargetOnDeviceService>& GetTargetOnDeviceServices() const{ return m_targetOnDeviceServices; }
84 inline bool TargetOnDeviceServicesHasBeenSet() const { return m_targetOnDeviceServicesHasBeenSet; }
85 inline void SetTargetOnDeviceServices(const Aws::Vector<TargetOnDeviceService>& value) { m_targetOnDeviceServicesHasBeenSet = true; m_targetOnDeviceServices = value; }
86 inline void SetTargetOnDeviceServices(Aws::Vector<TargetOnDeviceService>&& value) { m_targetOnDeviceServicesHasBeenSet = true; m_targetOnDeviceServices = std::move(value); }
89 inline S3Resource& AddTargetOnDeviceServices(const TargetOnDeviceService& value) { m_targetOnDeviceServicesHasBeenSet = true; m_targetOnDeviceServices.push_back(value); return *this; }
90 inline S3Resource& AddTargetOnDeviceServices(TargetOnDeviceService&& value) { m_targetOnDeviceServicesHasBeenSet = true; m_targetOnDeviceServices.push_back(std::move(value)); return *this; }
92 private:
93
94 Aws::String m_bucketArn;
95 bool m_bucketArnHasBeenSet = false;
96
97 KeyRange m_keyRange;
98 bool m_keyRangeHasBeenSet = false;
99
100 Aws::Vector<TargetOnDeviceService> m_targetOnDeviceServices;
101 bool m_targetOnDeviceServicesHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Snowball
106} // namespace Aws
S3Resource & WithBucketArn(const Aws::String &value)
Definition S3Resource.h:57
S3Resource & WithTargetOnDeviceServices(const Aws::Vector< TargetOnDeviceService > &value)
Definition S3Resource.h:87
AWS_SNOWBALL_API S3Resource(Aws::Utils::Json::JsonView jsonValue)
AWS_SNOWBALL_API S3Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
S3Resource & WithKeyRange(const KeyRange &value)
Definition S3Resource.h:73
bool TargetOnDeviceServicesHasBeenSet() const
Definition S3Resource.h:84
const Aws::Vector< TargetOnDeviceService > & GetTargetOnDeviceServices() const
Definition S3Resource.h:83
const KeyRange & GetKeyRange() const
Definition S3Resource.h:69
S3Resource & WithBucketArn(const char *value)
Definition S3Resource.h:59
void SetTargetOnDeviceServices(Aws::Vector< TargetOnDeviceService > &&value)
Definition S3Resource.h:86
void SetBucketArn(const char *value)
Definition S3Resource.h:56
void SetBucketArn(const Aws::String &value)
Definition S3Resource.h:54
void SetTargetOnDeviceServices(const Aws::Vector< TargetOnDeviceService > &value)
Definition S3Resource.h:85
S3Resource & WithBucketArn(Aws::String &&value)
Definition S3Resource.h:58
void SetKeyRange(const KeyRange &value)
Definition S3Resource.h:71
const Aws::String & GetBucketArn() const
Definition S3Resource.h:52
void SetKeyRange(KeyRange &&value)
Definition S3Resource.h:72
S3Resource & AddTargetOnDeviceServices(const TargetOnDeviceService &value)
Definition S3Resource.h:89
void SetBucketArn(Aws::String &&value)
Definition S3Resource.h:55
S3Resource & AddTargetOnDeviceServices(TargetOnDeviceService &&value)
Definition S3Resource.h:90
S3Resource & WithKeyRange(KeyRange &&value)
Definition S3Resource.h:74
S3Resource & WithTargetOnDeviceServices(Aws::Vector< TargetOnDeviceService > &&value)
Definition S3Resource.h:88
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue