AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
Outpost.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3outposts/S3Outposts_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace S3Outposts {
20namespace Model {
21
27class Outpost {
28 public:
29 AWS_S3OUTPOSTS_API Outpost() = default;
30 AWS_S3OUTPOSTS_API Outpost(Aws::Utils::Json::JsonView jsonValue);
31 AWS_S3OUTPOSTS_API Outpost& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_S3OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
39 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
40 template <typename OutpostArnT = Aws::String>
41 void SetOutpostArn(OutpostArnT&& value) {
42 m_outpostArnHasBeenSet = true;
43 m_outpostArn = std::forward<OutpostArnT>(value);
44 }
45 template <typename OutpostArnT = Aws::String>
46 Outpost& WithOutpostArn(OutpostArnT&& value) {
47 SetOutpostArn(std::forward<OutpostArnT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetS3OutpostArn() const { return m_s3OutpostArn; }
58 inline bool S3OutpostArnHasBeenSet() const { return m_s3OutpostArnHasBeenSet; }
59 template <typename S3OutpostArnT = Aws::String>
60 void SetS3OutpostArn(S3OutpostArnT&& value) {
61 m_s3OutpostArnHasBeenSet = true;
62 m_s3OutpostArn = std::forward<S3OutpostArnT>(value);
63 }
64 template <typename S3OutpostArnT = Aws::String>
65 Outpost& WithS3OutpostArn(S3OutpostArnT&& value) {
66 SetS3OutpostArn(std::forward<S3OutpostArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetOutpostId() const { return m_outpostId; }
76 inline bool OutpostIdHasBeenSet() const { return m_outpostIdHasBeenSet; }
77 template <typename OutpostIdT = Aws::String>
78 void SetOutpostId(OutpostIdT&& value) {
79 m_outpostIdHasBeenSet = true;
80 m_outpostId = std::forward<OutpostIdT>(value);
81 }
82 template <typename OutpostIdT = Aws::String>
83 Outpost& WithOutpostId(OutpostIdT&& value) {
84 SetOutpostId(std::forward<OutpostIdT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
95 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
96 template <typename OwnerIdT = Aws::String>
97 void SetOwnerId(OwnerIdT&& value) {
98 m_ownerIdHasBeenSet = true;
99 m_ownerId = std::forward<OwnerIdT>(value);
100 }
101 template <typename OwnerIdT = Aws::String>
102 Outpost& WithOwnerId(OwnerIdT&& value) {
103 SetOwnerId(std::forward<OwnerIdT>(value));
104 return *this;
105 }
107
109
112 inline long long GetCapacityInBytes() const { return m_capacityInBytes; }
113 inline bool CapacityInBytesHasBeenSet() const { return m_capacityInBytesHasBeenSet; }
114 inline void SetCapacityInBytes(long long value) {
115 m_capacityInBytesHasBeenSet = true;
116 m_capacityInBytes = value;
117 }
118 inline Outpost& WithCapacityInBytes(long long value) {
119 SetCapacityInBytes(value);
120 return *this;
121 }
123 private:
124 Aws::String m_outpostArn;
125
126 Aws::String m_s3OutpostArn;
127
128 Aws::String m_outpostId;
129
130 Aws::String m_ownerId;
131
132 long long m_capacityInBytes{0};
133 bool m_outpostArnHasBeenSet = false;
134 bool m_s3OutpostArnHasBeenSet = false;
135 bool m_outpostIdHasBeenSet = false;
136 bool m_ownerIdHasBeenSet = false;
137 bool m_capacityInBytesHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace S3Outposts
142} // namespace Aws
AWS_S3OUTPOSTS_API Outpost(Aws::Utils::Json::JsonView jsonValue)
AWS_S3OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetS3OutpostArn() const
Definition Outpost.h:57
void SetOwnerId(OwnerIdT &&value)
Definition Outpost.h:97
Outpost & WithOutpostArn(OutpostArnT &&value)
Definition Outpost.h:46
const Aws::String & GetOwnerId() const
Definition Outpost.h:94
void SetOutpostId(OutpostIdT &&value)
Definition Outpost.h:78
bool CapacityInBytesHasBeenSet() const
Definition Outpost.h:113
void SetOutpostArn(OutpostArnT &&value)
Definition Outpost.h:41
AWS_S3OUTPOSTS_API Outpost()=default
bool OutpostIdHasBeenSet() const
Definition Outpost.h:76
Outpost & WithOutpostId(OutpostIdT &&value)
Definition Outpost.h:83
Outpost & WithOwnerId(OwnerIdT &&value)
Definition Outpost.h:102
void SetCapacityInBytes(long long value)
Definition Outpost.h:114
void SetS3OutpostArn(S3OutpostArnT &&value)
Definition Outpost.h:60
Outpost & WithCapacityInBytes(long long value)
Definition Outpost.h:118
bool S3OutpostArnHasBeenSet() const
Definition Outpost.h:58
bool OutpostArnHasBeenSet() const
Definition Outpost.h:39
const Aws::String & GetOutpostArn() const
Definition Outpost.h:38
const Aws::String & GetOutpostId() const
Definition Outpost.h:75
AWS_S3OUTPOSTS_API Outpost & operator=(Aws::Utils::Json::JsonView jsonValue)
long long GetCapacityInBytes() const
Definition Outpost.h:112
Outpost & WithS3OutpostArn(S3OutpostArnT &&value)
Definition Outpost.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue