AWS SDK for C++

AWS SDK for C++ Version 1.11.749

Loading...
Searching...
No Matches
AccountInfo.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/datazone/DataZone_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataZone {
21namespace Model {
22
29 public:
30 AWS_DATAZONE_API AccountInfo() = default;
31 AWS_DATAZONE_API AccountInfo(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DATAZONE_API AccountInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
40 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
41 template <typename AwsAccountIdT = Aws::String>
42 void SetAwsAccountId(AwsAccountIdT&& value) {
43 m_awsAccountIdHasBeenSet = true;
44 m_awsAccountId = std::forward<AwsAccountIdT>(value);
45 }
46 template <typename AwsAccountIdT = Aws::String>
47 AccountInfo& WithAwsAccountId(AwsAccountIdT&& value) {
48 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Aws::String>& GetSupportedRegions() const { return m_supportedRegions; }
58 inline bool SupportedRegionsHasBeenSet() const { return m_supportedRegionsHasBeenSet; }
59 template <typename SupportedRegionsT = Aws::Vector<Aws::String>>
60 void SetSupportedRegions(SupportedRegionsT&& value) {
61 m_supportedRegionsHasBeenSet = true;
62 m_supportedRegions = std::forward<SupportedRegionsT>(value);
63 }
64 template <typename SupportedRegionsT = Aws::Vector<Aws::String>>
65 AccountInfo& WithSupportedRegions(SupportedRegionsT&& value) {
66 SetSupportedRegions(std::forward<SupportedRegionsT>(value));
67 return *this;
68 }
69 template <typename SupportedRegionsT = Aws::String>
70 AccountInfo& AddSupportedRegions(SupportedRegionsT&& value) {
71 m_supportedRegionsHasBeenSet = true;
72 m_supportedRegions.emplace_back(std::forward<SupportedRegionsT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetAwsAccountName() const { return m_awsAccountName; }
82 inline bool AwsAccountNameHasBeenSet() const { return m_awsAccountNameHasBeenSet; }
83 template <typename AwsAccountNameT = Aws::String>
84 void SetAwsAccountName(AwsAccountNameT&& value) {
85 m_awsAccountNameHasBeenSet = true;
86 m_awsAccountName = std::forward<AwsAccountNameT>(value);
87 }
88 template <typename AwsAccountNameT = Aws::String>
89 AccountInfo& WithAwsAccountName(AwsAccountNameT&& value) {
90 SetAwsAccountName(std::forward<AwsAccountNameT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_awsAccountId;
96
97 Aws::Vector<Aws::String> m_supportedRegions;
98
99 Aws::String m_awsAccountName;
100 bool m_awsAccountIdHasBeenSet = false;
101 bool m_supportedRegionsHasBeenSet = false;
102 bool m_awsAccountNameHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace DataZone
107} // namespace Aws
AWS_DATAZONE_API AccountInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAwsAccountId() const
Definition AccountInfo.h:39
AccountInfo & WithAwsAccountId(AwsAccountIdT &&value)
Definition AccountInfo.h:47
AWS_DATAZONE_API AccountInfo()=default
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AccountInfo & WithSupportedRegions(SupportedRegionsT &&value)
Definition AccountInfo.h:65
AWS_DATAZONE_API AccountInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAwsAccountName() const
Definition AccountInfo.h:81
void SetAwsAccountId(AwsAccountIdT &&value)
Definition AccountInfo.h:42
AccountInfo & AddSupportedRegions(SupportedRegionsT &&value)
Definition AccountInfo.h:70
void SetAwsAccountName(AwsAccountNameT &&value)
Definition AccountInfo.h:84
const Aws::Vector< Aws::String > & GetSupportedRegions() const
Definition AccountInfo.h:57
AccountInfo & WithAwsAccountName(AwsAccountNameT &&value)
Definition AccountInfo.h:89
void SetSupportedRegions(SupportedRegionsT &&value)
Definition AccountInfo.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue