AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CreateAccountPoolRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/AccountSource.h>
11#include <aws/datazone/model/ResolutionStrategy.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DataZone {
17namespace Model {
18
22 public:
23 AWS_DATAZONE_API CreateAccountPoolRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateAccountPool"; }
30
31 AWS_DATAZONE_API Aws::String SerializePayload() const override;
32
34
39 inline const AccountSource& GetAccountSource() const { return m_accountSource; }
40 inline bool AccountSourceHasBeenSet() const { return m_accountSourceHasBeenSet; }
41 template <typename AccountSourceT = AccountSource>
42 void SetAccountSource(AccountSourceT&& value) {
43 m_accountSourceHasBeenSet = true;
44 m_accountSource = std::forward<AccountSourceT>(value);
45 }
46 template <typename AccountSourceT = AccountSource>
48 SetAccountSource(std::forward<AccountSourceT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
76 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
77 template <typename DomainIdentifierT = Aws::String>
78 void SetDomainIdentifier(DomainIdentifierT&& value) {
79 m_domainIdentifierHasBeenSet = true;
80 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
81 }
82 template <typename DomainIdentifierT = Aws::String>
83 CreateAccountPoolRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
84 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetName() const { return m_name; }
94 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
95 template <typename NameT = Aws::String>
96 void SetName(NameT&& value) {
97 m_nameHasBeenSet = true;
98 m_name = std::forward<NameT>(value);
99 }
100 template <typename NameT = Aws::String>
102 SetName(std::forward<NameT>(value));
103 return *this;
104 }
106
108
112 inline ResolutionStrategy GetResolutionStrategy() const { return m_resolutionStrategy; }
113 inline bool ResolutionStrategyHasBeenSet() const { return m_resolutionStrategyHasBeenSet; }
115 m_resolutionStrategyHasBeenSet = true;
116 m_resolutionStrategy = value;
117 }
120 return *this;
121 }
123 private:
124 AccountSource m_accountSource;
125 bool m_accountSourceHasBeenSet = false;
126
127 Aws::String m_description;
128 bool m_descriptionHasBeenSet = false;
129
130 Aws::String m_domainIdentifier;
131 bool m_domainIdentifierHasBeenSet = false;
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
137 bool m_resolutionStrategyHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace DataZone
142} // namespace Aws
CreateAccountPoolRequest & WithResolutionStrategy(ResolutionStrategy value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateAccountPoolRequest & WithAccountSource(AccountSourceT &&value)
CreateAccountPoolRequest & WithDescription(DescriptionT &&value)
CreateAccountPoolRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
CreateAccountPoolRequest & WithDomainIdentifier(DomainIdentifierT &&value)
AWS_DATAZONE_API CreateAccountPoolRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String