AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
Container.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediastore/MediaStore_EXPORTS.h>
10#include <aws/mediastore/model/ContainerStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaStore {
22namespace Model {
23
30class Container {
31 public:
32 AWS_MEDIASTORE_API Container() = default;
33 AWS_MEDIASTORE_API Container(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIASTORE_API Container& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MEDIASTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
45 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
46 template <typename EndpointT = Aws::String>
47 void SetEndpoint(EndpointT&& value) {
48 m_endpointHasBeenSet = true;
49 m_endpoint = std::forward<EndpointT>(value);
50 }
51 template <typename EndpointT = Aws::String>
52 Container& WithEndpoint(EndpointT&& value) {
53 SetEndpoint(std::forward<EndpointT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
63 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
64 template <typename CreationTimeT = Aws::Utils::DateTime>
65 void SetCreationTime(CreationTimeT&& value) {
66 m_creationTimeHasBeenSet = true;
67 m_creationTime = std::forward<CreationTimeT>(value);
68 }
69 template <typename CreationTimeT = Aws::Utils::DateTime>
70 Container& WithCreationTime(CreationTimeT&& value) {
71 SetCreationTime(std::forward<CreationTimeT>(value));
72 return *this;
73 }
75
77
83 inline const Aws::String& GetARN() const { return m_aRN; }
84 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
85 template <typename ARNT = Aws::String>
86 void SetARN(ARNT&& value) {
87 m_aRNHasBeenSet = true;
88 m_aRN = std::forward<ARNT>(value);
89 }
90 template <typename ARNT = Aws::String>
91 Container& WithARN(ARNT&& value) {
92 SetARN(std::forward<ARNT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetName() const { return m_name; }
102 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
103 template <typename NameT = Aws::String>
104 void SetName(NameT&& value) {
105 m_nameHasBeenSet = true;
106 m_name = std::forward<NameT>(value);
107 }
108 template <typename NameT = Aws::String>
109 Container& WithName(NameT&& value) {
110 SetName(std::forward<NameT>(value));
111 return *this;
112 }
114
116
123 inline ContainerStatus GetStatus() const { return m_status; }
124 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
125 inline void SetStatus(ContainerStatus value) {
126 m_statusHasBeenSet = true;
127 m_status = value;
128 }
130 SetStatus(value);
131 return *this;
132 }
134
136
144 inline bool GetAccessLoggingEnabled() const { return m_accessLoggingEnabled; }
145 inline bool AccessLoggingEnabledHasBeenSet() const { return m_accessLoggingEnabledHasBeenSet; }
146 inline void SetAccessLoggingEnabled(bool value) {
147 m_accessLoggingEnabledHasBeenSet = true;
148 m_accessLoggingEnabled = value;
149 }
152 return *this;
153 }
155 private:
156 Aws::String m_endpoint;
157
158 Aws::Utils::DateTime m_creationTime{};
159
160 Aws::String m_aRN;
161
162 Aws::String m_name;
163
165
166 bool m_accessLoggingEnabled{false};
167 bool m_endpointHasBeenSet = false;
168 bool m_creationTimeHasBeenSet = false;
169 bool m_aRNHasBeenSet = false;
170 bool m_nameHasBeenSet = false;
171 bool m_statusHasBeenSet = false;
172 bool m_accessLoggingEnabledHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace MediaStore
177} // namespace Aws
void SetAccessLoggingEnabled(bool value)
Definition Container.h:146
Container & WithStatus(ContainerStatus value)
Definition Container.h:129
const Aws::Utils::DateTime & GetCreationTime() const
Definition Container.h:62
Container & WithAccessLoggingEnabled(bool value)
Definition Container.h:150
void SetStatus(ContainerStatus value)
Definition Container.h:125
void SetEndpoint(EndpointT &&value)
Definition Container.h:47
const Aws::String & GetARN() const
Definition Container.h:83
const Aws::String & GetEndpoint() const
Definition Container.h:44
const Aws::String & GetName() const
Definition Container.h:101
Container & WithName(NameT &&value)
Definition Container.h:109
bool AccessLoggingEnabledHasBeenSet() const
Definition Container.h:145
AWS_MEDIASTORE_API Container()=default
void SetCreationTime(CreationTimeT &&value)
Definition Container.h:65
AWS_MEDIASTORE_API Container & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIASTORE_API Container(Aws::Utils::Json::JsonView jsonValue)
Container & WithARN(ARNT &&value)
Definition Container.h:91
ContainerStatus GetStatus() const
Definition Container.h:123
Container & WithEndpoint(EndpointT &&value)
Definition Container.h:52
Container & WithCreationTime(CreationTimeT &&value)
Definition Container.h:70
AWS_MEDIASTORE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(NameT &&value)
Definition Container.h:104
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue