AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
AccountInfo.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 DataZone
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DATAZONE_API AccountInfo() = default;
36 AWS_DATAZONE_API AccountInfo(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATAZONE_API AccountInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
46 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
47 template<typename AwsAccountIdT = Aws::String>
48 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
49 template<typename AwsAccountIdT = Aws::String>
50 AccountInfo& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetAwsAccountName() const { return m_awsAccountName; }
58 inline bool AwsAccountNameHasBeenSet() const { return m_awsAccountNameHasBeenSet; }
59 template<typename AwsAccountNameT = Aws::String>
60 void SetAwsAccountName(AwsAccountNameT&& value) { m_awsAccountNameHasBeenSet = true; m_awsAccountName = std::forward<AwsAccountNameT>(value); }
61 template<typename AwsAccountNameT = Aws::String>
62 AccountInfo& WithAwsAccountName(AwsAccountNameT&& value) { SetAwsAccountName(std::forward<AwsAccountNameT>(value)); return *this;}
64
66
69 inline const Aws::Vector<Aws::String>& GetSupportedRegions() const { return m_supportedRegions; }
70 inline bool SupportedRegionsHasBeenSet() const { return m_supportedRegionsHasBeenSet; }
71 template<typename SupportedRegionsT = Aws::Vector<Aws::String>>
72 void SetSupportedRegions(SupportedRegionsT&& value) { m_supportedRegionsHasBeenSet = true; m_supportedRegions = std::forward<SupportedRegionsT>(value); }
73 template<typename SupportedRegionsT = Aws::Vector<Aws::String>>
74 AccountInfo& WithSupportedRegions(SupportedRegionsT&& value) { SetSupportedRegions(std::forward<SupportedRegionsT>(value)); return *this;}
75 template<typename SupportedRegionsT = Aws::String>
76 AccountInfo& AddSupportedRegions(SupportedRegionsT&& value) { m_supportedRegionsHasBeenSet = true; m_supportedRegions.emplace_back(std::forward<SupportedRegionsT>(value)); return *this; }
78 private:
79
80 Aws::String m_awsAccountId;
81 bool m_awsAccountIdHasBeenSet = false;
82
83 Aws::String m_awsAccountName;
84 bool m_awsAccountNameHasBeenSet = false;
85
86 Aws::Vector<Aws::String> m_supportedRegions;
87 bool m_supportedRegionsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace DataZone
92} // namespace Aws
AWS_DATAZONE_API AccountInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAwsAccountId() const
Definition AccountInfo.h:45
AccountInfo & WithAwsAccountId(AwsAccountIdT &&value)
Definition AccountInfo.h:50
AWS_DATAZONE_API AccountInfo()=default
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AccountInfo & WithSupportedRegions(SupportedRegionsT &&value)
Definition AccountInfo.h:74
AWS_DATAZONE_API AccountInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAwsAccountName() const
Definition AccountInfo.h:57
void SetAwsAccountId(AwsAccountIdT &&value)
Definition AccountInfo.h:48
AccountInfo & AddSupportedRegions(SupportedRegionsT &&value)
Definition AccountInfo.h:76
void SetAwsAccountName(AwsAccountNameT &&value)
Definition AccountInfo.h:60
const Aws::Vector< Aws::String > & GetSupportedRegions() const
Definition AccountInfo.h:69
AccountInfo & WithAwsAccountName(AwsAccountNameT &&value)
Definition AccountInfo.h:62
void SetSupportedRegions(SupportedRegionsT &&value)
Definition AccountInfo.h:72
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue