AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AggregationAuthorization.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConfigService {
21namespace Model {
22
30 public:
31 AWS_CONFIGSERVICE_API AggregationAuthorization() = default;
32 AWS_CONFIGSERVICE_API AggregationAuthorization(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAggregationAuthorizationArn() const { return m_aggregationAuthorizationArn; }
41 inline bool AggregationAuthorizationArnHasBeenSet() const { return m_aggregationAuthorizationArnHasBeenSet; }
42 template <typename AggregationAuthorizationArnT = Aws::String>
43 void SetAggregationAuthorizationArn(AggregationAuthorizationArnT&& value) {
44 m_aggregationAuthorizationArnHasBeenSet = true;
45 m_aggregationAuthorizationArn = std::forward<AggregationAuthorizationArnT>(value);
46 }
47 template <typename AggregationAuthorizationArnT = Aws::String>
48 AggregationAuthorization& WithAggregationAuthorizationArn(AggregationAuthorizationArnT&& value) {
49 SetAggregationAuthorizationArn(std::forward<AggregationAuthorizationArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAuthorizedAccountId() const { return m_authorizedAccountId; }
59 inline bool AuthorizedAccountIdHasBeenSet() const { return m_authorizedAccountIdHasBeenSet; }
60 template <typename AuthorizedAccountIdT = Aws::String>
61 void SetAuthorizedAccountId(AuthorizedAccountIdT&& value) {
62 m_authorizedAccountIdHasBeenSet = true;
63 m_authorizedAccountId = std::forward<AuthorizedAccountIdT>(value);
64 }
65 template <typename AuthorizedAccountIdT = Aws::String>
66 AggregationAuthorization& WithAuthorizedAccountId(AuthorizedAccountIdT&& value) {
67 SetAuthorizedAccountId(std::forward<AuthorizedAccountIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetAuthorizedAwsRegion() const { return m_authorizedAwsRegion; }
77 inline bool AuthorizedAwsRegionHasBeenSet() const { return m_authorizedAwsRegionHasBeenSet; }
78 template <typename AuthorizedAwsRegionT = Aws::String>
79 void SetAuthorizedAwsRegion(AuthorizedAwsRegionT&& value) {
80 m_authorizedAwsRegionHasBeenSet = true;
81 m_authorizedAwsRegion = std::forward<AuthorizedAwsRegionT>(value);
82 }
83 template <typename AuthorizedAwsRegionT = Aws::String>
84 AggregationAuthorization& WithAuthorizedAwsRegion(AuthorizedAwsRegionT&& value) {
85 SetAuthorizedAwsRegion(std::forward<AuthorizedAwsRegionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
95 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
96 template <typename CreationTimeT = Aws::Utils::DateTime>
97 void SetCreationTime(CreationTimeT&& value) {
98 m_creationTimeHasBeenSet = true;
99 m_creationTime = std::forward<CreationTimeT>(value);
100 }
101 template <typename CreationTimeT = Aws::Utils::DateTime>
103 SetCreationTime(std::forward<CreationTimeT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_aggregationAuthorizationArn;
109
110 Aws::String m_authorizedAccountId;
111
112 Aws::String m_authorizedAwsRegion;
113
114 Aws::Utils::DateTime m_creationTime{};
115 bool m_aggregationAuthorizationArnHasBeenSet = false;
116 bool m_authorizedAccountIdHasBeenSet = false;
117 bool m_authorizedAwsRegionHasBeenSet = false;
118 bool m_creationTimeHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace ConfigService
123} // namespace Aws
AWS_CONFIGSERVICE_API AggregationAuthorization()=default
void SetAggregationAuthorizationArn(AggregationAuthorizationArnT &&value)
AWS_CONFIGSERVICE_API AggregationAuthorization(Aws::Utils::Json::JsonView jsonValue)
AggregationAuthorization & WithAuthorizedAwsRegion(AuthorizedAwsRegionT &&value)
AggregationAuthorization & WithAuthorizedAccountId(AuthorizedAccountIdT &&value)
AggregationAuthorization & WithAggregationAuthorizationArn(AggregationAuthorizationArnT &&value)
AWS_CONFIGSERVICE_API AggregationAuthorization & operator=(Aws::Utils::Json::JsonView jsonValue)
AggregationAuthorization & WithCreationTime(CreationTimeT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue