AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
GetAuthorizationTokenResult.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/ecr/ECR_EXPORTS.h>
10#include <aws/ecr/model/AuthorizationData.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace ECR {
24namespace Model {
26 public:
27 AWS_ECR_API GetAuthorizationTokenResult() = default;
30
32
38 inline const Aws::Vector<AuthorizationData>& GetAuthorizationData() const { return m_authorizationData; }
39 template <typename AuthorizationDataT = Aws::Vector<AuthorizationData>>
40 void SetAuthorizationData(AuthorizationDataT&& value) {
41 m_authorizationDataHasBeenSet = true;
42 m_authorizationData = std::forward<AuthorizationDataT>(value);
43 }
44 template <typename AuthorizationDataT = Aws::Vector<AuthorizationData>>
46 SetAuthorizationData(std::forward<AuthorizationDataT>(value));
47 return *this;
48 }
49 template <typename AuthorizationDataT = AuthorizationData>
51 m_authorizationDataHasBeenSet = true;
52 m_authorizationData.emplace_back(std::forward<AuthorizationDataT>(value));
53 return *this;
54 }
56
58
59 inline const Aws::String& GetRequestId() const { return m_requestId; }
60 template <typename RequestIdT = Aws::String>
61 void SetRequestId(RequestIdT&& value) {
62 m_requestIdHasBeenSet = true;
63 m_requestId = std::forward<RequestIdT>(value);
64 }
65 template <typename RequestIdT = Aws::String>
67 SetRequestId(std::forward<RequestIdT>(value));
68 return *this;
69 }
71 private:
72 Aws::Vector<AuthorizationData> m_authorizationData;
73
74 Aws::String m_requestId;
75 bool m_authorizationDataHasBeenSet = false;
76 bool m_requestIdHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace ECR
81} // namespace Aws
AWS_ECR_API GetAuthorizationTokenResult()=default
const Aws::Vector< AuthorizationData > & GetAuthorizationData() const
GetAuthorizationTokenResult & WithRequestId(RequestIdT &&value)
GetAuthorizationTokenResult & AddAuthorizationData(AuthorizationDataT &&value)
AWS_ECR_API GetAuthorizationTokenResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAuthorizationTokenResult & WithAuthorizationData(AuthorizationDataT &&value)
AWS_ECR_API GetAuthorizationTokenResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue