AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
ExpressGatewayContainer.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/ExpressGatewayRepositoryCredentials.h>
11#include <aws/ecs/model/ExpressGatewayServiceAwsLogsConfiguration.h>
12#include <aws/ecs/model/KeyValuePair.h>
13#include <aws/ecs/model/Secret.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ECS {
25namespace Model {
26
38 public:
39 AWS_ECS_API ExpressGatewayContainer() = default;
43
45
54 inline const Aws::String& GetImage() const { return m_image; }
55 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
56 template <typename ImageT = Aws::String>
57 void SetImage(ImageT&& value) {
58 m_imageHasBeenSet = true;
59 m_image = std::forward<ImageT>(value);
60 }
61 template <typename ImageT = Aws::String>
63 SetImage(std::forward<ImageT>(value));
64 return *this;
65 }
67
69
73 inline int GetContainerPort() const { return m_containerPort; }
74 inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
75 inline void SetContainerPort(int value) {
76 m_containerPortHasBeenSet = true;
77 m_containerPort = value;
78 }
80 SetContainerPort(value);
81 return *this;
82 }
84
86
89 inline const ExpressGatewayServiceAwsLogsConfiguration& GetAwsLogsConfiguration() const { return m_awsLogsConfiguration; }
90 inline bool AwsLogsConfigurationHasBeenSet() const { return m_awsLogsConfigurationHasBeenSet; }
91 template <typename AwsLogsConfigurationT = ExpressGatewayServiceAwsLogsConfiguration>
92 void SetAwsLogsConfiguration(AwsLogsConfigurationT&& value) {
93 m_awsLogsConfigurationHasBeenSet = true;
94 m_awsLogsConfiguration = std::forward<AwsLogsConfigurationT>(value);
95 }
96 template <typename AwsLogsConfigurationT = ExpressGatewayServiceAwsLogsConfiguration>
97 ExpressGatewayContainer& WithAwsLogsConfiguration(AwsLogsConfigurationT&& value) {
98 SetAwsLogsConfiguration(std::forward<AwsLogsConfigurationT>(value));
99 return *this;
100 }
102
104
108 inline const ExpressGatewayRepositoryCredentials& GetRepositoryCredentials() const { return m_repositoryCredentials; }
109 inline bool RepositoryCredentialsHasBeenSet() const { return m_repositoryCredentialsHasBeenSet; }
110 template <typename RepositoryCredentialsT = ExpressGatewayRepositoryCredentials>
111 void SetRepositoryCredentials(RepositoryCredentialsT&& value) {
112 m_repositoryCredentialsHasBeenSet = true;
113 m_repositoryCredentials = std::forward<RepositoryCredentialsT>(value);
114 }
115 template <typename RepositoryCredentialsT = ExpressGatewayRepositoryCredentials>
116 ExpressGatewayContainer& WithRepositoryCredentials(RepositoryCredentialsT&& value) {
117 SetRepositoryCredentials(std::forward<RepositoryCredentialsT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::Vector<Aws::String>& GetCommand() const { return m_command; }
127 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
128 template <typename CommandT = Aws::Vector<Aws::String>>
129 void SetCommand(CommandT&& value) {
130 m_commandHasBeenSet = true;
131 m_command = std::forward<CommandT>(value);
132 }
133 template <typename CommandT = Aws::Vector<Aws::String>>
135 SetCommand(std::forward<CommandT>(value));
136 return *this;
137 }
138 template <typename CommandT = Aws::String>
140 m_commandHasBeenSet = true;
141 m_command.emplace_back(std::forward<CommandT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Vector<KeyValuePair>& GetEnvironment() const { return m_environment; }
151 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
152 template <typename EnvironmentT = Aws::Vector<KeyValuePair>>
153 void SetEnvironment(EnvironmentT&& value) {
154 m_environmentHasBeenSet = true;
155 m_environment = std::forward<EnvironmentT>(value);
156 }
157 template <typename EnvironmentT = Aws::Vector<KeyValuePair>>
159 SetEnvironment(std::forward<EnvironmentT>(value));
160 return *this;
161 }
162 template <typename EnvironmentT = KeyValuePair>
164 m_environmentHasBeenSet = true;
165 m_environment.emplace_back(std::forward<EnvironmentT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::Vector<Secret>& GetSecrets() const { return m_secrets; }
175 inline bool SecretsHasBeenSet() const { return m_secretsHasBeenSet; }
176 template <typename SecretsT = Aws::Vector<Secret>>
177 void SetSecrets(SecretsT&& value) {
178 m_secretsHasBeenSet = true;
179 m_secrets = std::forward<SecretsT>(value);
180 }
181 template <typename SecretsT = Aws::Vector<Secret>>
183 SetSecrets(std::forward<SecretsT>(value));
184 return *this;
185 }
186 template <typename SecretsT = Secret>
188 m_secretsHasBeenSet = true;
189 m_secrets.emplace_back(std::forward<SecretsT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_image;
195
196 int m_containerPort{0};
197
198 ExpressGatewayServiceAwsLogsConfiguration m_awsLogsConfiguration;
199
200 ExpressGatewayRepositoryCredentials m_repositoryCredentials;
201
202 Aws::Vector<Aws::String> m_command;
203
204 Aws::Vector<KeyValuePair> m_environment;
205
206 Aws::Vector<Secret> m_secrets;
207 bool m_imageHasBeenSet = false;
208 bool m_containerPortHasBeenSet = false;
209 bool m_awsLogsConfigurationHasBeenSet = false;
210 bool m_repositoryCredentialsHasBeenSet = false;
211 bool m_commandHasBeenSet = false;
212 bool m_environmentHasBeenSet = false;
213 bool m_secretsHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace ECS
218} // namespace Aws
ExpressGatewayContainer & WithImage(ImageT &&value)
AWS_ECS_API ExpressGatewayContainer(Aws::Utils::Json::JsonView jsonValue)
ExpressGatewayContainer & AddSecrets(SecretsT &&value)
void SetRepositoryCredentials(RepositoryCredentialsT &&value)
ExpressGatewayContainer & AddEnvironment(EnvironmentT &&value)
const Aws::Vector< KeyValuePair > & GetEnvironment() const
void SetAwsLogsConfiguration(AwsLogsConfigurationT &&value)
ExpressGatewayContainer & WithEnvironment(EnvironmentT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API ExpressGatewayContainer()=default
ExpressGatewayContainer & AddCommand(CommandT &&value)
const Aws::Vector< Aws::String > & GetCommand() const
ExpressGatewayContainer & WithContainerPort(int value)
const ExpressGatewayRepositoryCredentials & GetRepositoryCredentials() const
ExpressGatewayContainer & WithAwsLogsConfiguration(AwsLogsConfigurationT &&value)
AWS_ECS_API ExpressGatewayContainer & operator=(Aws::Utils::Json::JsonView jsonValue)
ExpressGatewayContainer & WithCommand(CommandT &&value)
ExpressGatewayContainer & WithRepositoryCredentials(RepositoryCredentialsT &&value)
const Aws::Vector< Secret > & GetSecrets() const
const ExpressGatewayServiceAwsLogsConfiguration & GetAwsLogsConfiguration() const
ExpressGatewayContainer & WithSecrets(SecretsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue