AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AuthorizationData.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECR
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ECR_API AuthorizationData() = default;
40
41
43
49 inline const Aws::String& GetAuthorizationToken() const { return m_authorizationToken; }
50 inline bool AuthorizationTokenHasBeenSet() const { return m_authorizationTokenHasBeenSet; }
51 template<typename AuthorizationTokenT = Aws::String>
52 void SetAuthorizationToken(AuthorizationTokenT&& value) { m_authorizationTokenHasBeenSet = true; m_authorizationToken = std::forward<AuthorizationTokenT>(value); }
53 template<typename AuthorizationTokenT = Aws::String>
54 AuthorizationData& WithAuthorizationToken(AuthorizationTokenT&& value) { SetAuthorizationToken(std::forward<AuthorizationTokenT>(value)); return *this;}
56
58
62 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
63 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
64 template<typename ExpiresAtT = Aws::Utils::DateTime>
65 void SetExpiresAt(ExpiresAtT&& value) { m_expiresAtHasBeenSet = true; m_expiresAt = std::forward<ExpiresAtT>(value); }
66 template<typename ExpiresAtT = Aws::Utils::DateTime>
67 AuthorizationData& WithExpiresAt(ExpiresAtT&& value) { SetExpiresAt(std::forward<ExpiresAtT>(value)); return *this;}
69
71
77 inline const Aws::String& GetProxyEndpoint() const { return m_proxyEndpoint; }
78 inline bool ProxyEndpointHasBeenSet() const { return m_proxyEndpointHasBeenSet; }
79 template<typename ProxyEndpointT = Aws::String>
80 void SetProxyEndpoint(ProxyEndpointT&& value) { m_proxyEndpointHasBeenSet = true; m_proxyEndpoint = std::forward<ProxyEndpointT>(value); }
81 template<typename ProxyEndpointT = Aws::String>
82 AuthorizationData& WithProxyEndpoint(ProxyEndpointT&& value) { SetProxyEndpoint(std::forward<ProxyEndpointT>(value)); return *this;}
84 private:
85
86 Aws::String m_authorizationToken;
87 bool m_authorizationTokenHasBeenSet = false;
88
89 Aws::Utils::DateTime m_expiresAt{};
90 bool m_expiresAtHasBeenSet = false;
91
92 Aws::String m_proxyEndpoint;
93 bool m_proxyEndpointHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ECR
98} // namespace Aws
AuthorizationData & WithProxyEndpoint(ProxyEndpointT &&value)
AWS_ECR_API AuthorizationData(Aws::Utils::Json::JsonView jsonValue)
AuthorizationData & WithExpiresAt(ExpiresAtT &&value)
AuthorizationData & WithAuthorizationToken(AuthorizationTokenT &&value)
void SetProxyEndpoint(ProxyEndpointT &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetExpiresAt() const
const Aws::String & GetAuthorizationToken() const
void SetExpiresAt(ExpiresAtT &&value)
const Aws::String & GetProxyEndpoint() const
AWS_ECR_API AuthorizationData()=default
void SetAuthorizationToken(AuthorizationTokenT &&value)
AWS_ECR_API AuthorizationData & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue