AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
37 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
38 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
39 template <typename DomainIdentifierT = Aws::String>
40 void SetDomainIdentifier(DomainIdentifierT&& value) {
41 m_domainIdentifierHasBeenSet = true;
42 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
43 }
44 template <typename DomainIdentifierT = Aws::String>
45 CreateAccountPoolRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
46 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
92 inline ResolutionStrategy GetResolutionStrategy() const { return m_resolutionStrategy; }
93 inline bool ResolutionStrategyHasBeenSet() const { return m_resolutionStrategyHasBeenSet; }
95 m_resolutionStrategyHasBeenSet = true;
96 m_resolutionStrategy = value;
97 }
100 return *this;
101 }
103
105
110 inline const AccountSource& GetAccountSource() const { return m_accountSource; }
111 inline bool AccountSourceHasBeenSet() const { return m_accountSourceHasBeenSet; }
112 template <typename AccountSourceT = AccountSource>
113 void SetAccountSource(AccountSourceT&& value) {
114 m_accountSourceHasBeenSet = true;
115 m_accountSource = std::forward<AccountSourceT>(value);
116 }
117 template <typename AccountSourceT = AccountSource>
119 SetAccountSource(std::forward<AccountSourceT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_domainIdentifier;
125
126 Aws::String m_name;
127
128 Aws::String m_description;
129
131
132 AccountSource m_accountSource;
133 bool m_domainIdentifierHasBeenSet = false;
134 bool m_nameHasBeenSet = false;
135 bool m_descriptionHasBeenSet = false;
136 bool m_resolutionStrategyHasBeenSet = false;
137 bool m_accountSourceHasBeenSet = 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