AWS SDK for C++  1.9.129
AWS SDK for C++
AuthorizationData.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ECR
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
48  inline const Aws::String& GetAuthorizationToken() const{ return m_authorizationToken; }
49 
56  inline bool AuthorizationTokenHasBeenSet() const { return m_authorizationTokenHasBeenSet; }
57 
64  inline void SetAuthorizationToken(const Aws::String& value) { m_authorizationTokenHasBeenSet = true; m_authorizationToken = value; }
65 
72  inline void SetAuthorizationToken(Aws::String&& value) { m_authorizationTokenHasBeenSet = true; m_authorizationToken = std::move(value); }
73 
80  inline void SetAuthorizationToken(const char* value) { m_authorizationTokenHasBeenSet = true; m_authorizationToken.assign(value); }
81 
88  inline AuthorizationData& WithAuthorizationToken(const Aws::String& value) { SetAuthorizationToken(value); return *this;}
89 
96  inline AuthorizationData& WithAuthorizationToken(Aws::String&& value) { SetAuthorizationToken(std::move(value)); return *this;}
97 
104  inline AuthorizationData& WithAuthorizationToken(const char* value) { SetAuthorizationToken(value); return *this;}
105 
106 
111  inline const Aws::Utils::DateTime& GetExpiresAt() const{ return m_expiresAt; }
112 
117  inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
118 
123  inline void SetExpiresAt(const Aws::Utils::DateTime& value) { m_expiresAtHasBeenSet = true; m_expiresAt = value; }
124 
129  inline void SetExpiresAt(Aws::Utils::DateTime&& value) { m_expiresAtHasBeenSet = true; m_expiresAt = std::move(value); }
130 
135  inline AuthorizationData& WithExpiresAt(const Aws::Utils::DateTime& value) { SetExpiresAt(value); return *this;}
136 
141  inline AuthorizationData& WithExpiresAt(Aws::Utils::DateTime&& value) { SetExpiresAt(std::move(value)); return *this;}
142 
143 
150  inline const Aws::String& GetProxyEndpoint() const{ return m_proxyEndpoint; }
151 
158  inline bool ProxyEndpointHasBeenSet() const { return m_proxyEndpointHasBeenSet; }
159 
166  inline void SetProxyEndpoint(const Aws::String& value) { m_proxyEndpointHasBeenSet = true; m_proxyEndpoint = value; }
167 
174  inline void SetProxyEndpoint(Aws::String&& value) { m_proxyEndpointHasBeenSet = true; m_proxyEndpoint = std::move(value); }
175 
182  inline void SetProxyEndpoint(const char* value) { m_proxyEndpointHasBeenSet = true; m_proxyEndpoint.assign(value); }
183 
190  inline AuthorizationData& WithProxyEndpoint(const Aws::String& value) { SetProxyEndpoint(value); return *this;}
191 
198  inline AuthorizationData& WithProxyEndpoint(Aws::String&& value) { SetProxyEndpoint(std::move(value)); return *this;}
199 
206  inline AuthorizationData& WithProxyEndpoint(const char* value) { SetProxyEndpoint(value); return *this;}
207 
208  private:
209 
210  Aws::String m_authorizationToken;
211  bool m_authorizationTokenHasBeenSet;
212 
213  Aws::Utils::DateTime m_expiresAt;
214  bool m_expiresAtHasBeenSet;
215 
216  Aws::String m_proxyEndpoint;
217  bool m_proxyEndpointHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace ECR
222 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::ECR::Model::AuthorizationData::SetProxyEndpoint
void SetProxyEndpoint(const Aws::String &value)
Definition: AuthorizationData.h:166
Aws::ECR::Model::AuthorizationData::SetProxyEndpoint
void SetProxyEndpoint(Aws::String &&value)
Definition: AuthorizationData.h:174
Aws::ECR::Model::AuthorizationData::WithAuthorizationToken
AuthorizationData & WithAuthorizationToken(const Aws::String &value)
Definition: AuthorizationData.h:88
Aws::ECR::Model::AuthorizationData::WithExpiresAt
AuthorizationData & WithExpiresAt(const Aws::Utils::DateTime &value)
Definition: AuthorizationData.h:135
Aws::ECR::Model::AuthorizationData::operator=
AuthorizationData & operator=(Aws::Utils::Json::JsonView jsonValue)
DateTime.h
Aws::ECR::Model::AuthorizationData::WithAuthorizationToken
AuthorizationData & WithAuthorizationToken(const char *value)
Definition: AuthorizationData.h:104
Aws::ECR::Model::AuthorizationData::AuthorizationTokenHasBeenSet
bool AuthorizationTokenHasBeenSet() const
Definition: AuthorizationData.h:56
Aws::ECR::Model::AuthorizationData
Definition: AuthorizationData.h:34
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::AuthorizationData::GetProxyEndpoint
const Aws::String & GetProxyEndpoint() const
Definition: AuthorizationData.h:150
ECR_EXPORTS.h
Aws::ECR::Model::AuthorizationData::SetExpiresAt
void SetExpiresAt(Aws::Utils::DateTime &&value)
Definition: AuthorizationData.h:129
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ECR::Model::AuthorizationData::ExpiresAtHasBeenSet
bool ExpiresAtHasBeenSet() const
Definition: AuthorizationData.h:117
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECR::Model::AuthorizationData::WithProxyEndpoint
AuthorizationData & WithProxyEndpoint(const Aws::String &value)
Definition: AuthorizationData.h:190
Aws::ECR::Model::AuthorizationData::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::AuthorizationData::GetAuthorizationToken
const Aws::String & GetAuthorizationToken() const
Definition: AuthorizationData.h:48
Aws::ECR::Model::AuthorizationData::ProxyEndpointHasBeenSet
bool ProxyEndpointHasBeenSet() const
Definition: AuthorizationData.h:158
Aws::ECR::Model::AuthorizationData::AuthorizationData
AuthorizationData(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::AuthorizationData::GetExpiresAt
const Aws::Utils::DateTime & GetExpiresAt() const
Definition: AuthorizationData.h:111
Aws::ECR::Model::AuthorizationData::WithExpiresAt
AuthorizationData & WithExpiresAt(Aws::Utils::DateTime &&value)
Definition: AuthorizationData.h:141
Aws::ECR::Model::AuthorizationData::SetAuthorizationToken
void SetAuthorizationToken(const Aws::String &value)
Definition: AuthorizationData.h:64
Aws::ECR::Model::AuthorizationData::SetProxyEndpoint
void SetProxyEndpoint(const char *value)
Definition: AuthorizationData.h:182
Aws::ECR::Model::AuthorizationData::AuthorizationData
AuthorizationData()
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::AuthorizationData::SetExpiresAt
void SetExpiresAt(const Aws::Utils::DateTime &value)
Definition: AuthorizationData.h:123
Aws::ECR::Model::AuthorizationData::WithProxyEndpoint
AuthorizationData & WithProxyEndpoint(const char *value)
Definition: AuthorizationData.h:206
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::AuthorizationData::SetAuthorizationToken
void SetAuthorizationToken(const char *value)
Definition: AuthorizationData.h:80
Aws::ECR::Model::AuthorizationData::WithAuthorizationToken
AuthorizationData & WithAuthorizationToken(Aws::String &&value)
Definition: AuthorizationData.h:96
Aws::ECR::Model::AuthorizationData::SetAuthorizationToken
void SetAuthorizationToken(Aws::String &&value)
Definition: AuthorizationData.h:72
Aws::ECR::Model::AuthorizationData::WithProxyEndpoint
AuthorizationData & WithProxyEndpoint(Aws::String &&value)
Definition: AuthorizationData.h:198