AWS SDK for C++  1.9.109
AWS SDK for C++
CreateOrganizationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Organizations
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateOrganization"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
52  inline const OrganizationFeatureSet& GetFeatureSet() const{ return m_featureSet; }
53 
69  inline bool FeatureSetHasBeenSet() const { return m_featureSetHasBeenSet; }
70 
86  inline void SetFeatureSet(const OrganizationFeatureSet& value) { m_featureSetHasBeenSet = true; m_featureSet = value; }
87 
103  inline void SetFeatureSet(OrganizationFeatureSet&& value) { m_featureSetHasBeenSet = true; m_featureSet = std::move(value); }
104 
120  inline CreateOrganizationRequest& WithFeatureSet(const OrganizationFeatureSet& value) { SetFeatureSet(value); return *this;}
121 
137  inline CreateOrganizationRequest& WithFeatureSet(OrganizationFeatureSet&& value) { SetFeatureSet(std::move(value)); return *this;}
138 
139  private:
140 
141  OrganizationFeatureSet m_featureSet;
142  bool m_featureSetHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace Organizations
147 } // namespace Aws
Aws::Organizations::Model::CreateOrganizationRequest::FeatureSetHasBeenSet
bool FeatureSetHasBeenSet() const
Definition: CreateOrganizationRequest.h:69
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
OrganizationFeatureSet.h
Aws::Organizations::Model::OrganizationFeatureSet
OrganizationFeatureSet
Definition: OrganizationFeatureSet.h:17
Aws::Organizations::Model::CreateOrganizationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::CreateOrganizationRequest::WithFeatureSet
CreateOrganizationRequest & WithFeatureSet(OrganizationFeatureSet &&value)
Definition: CreateOrganizationRequest.h:137
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::CreateOrganizationRequest::WithFeatureSet
CreateOrganizationRequest & WithFeatureSet(const OrganizationFeatureSet &value)
Definition: CreateOrganizationRequest.h:120
Aws::Organizations::Model::CreateOrganizationRequest::SetFeatureSet
void SetFeatureSet(OrganizationFeatureSet &&value)
Definition: CreateOrganizationRequest.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::CreateOrganizationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::CreateOrganizationRequest::CreateOrganizationRequest
CreateOrganizationRequest()
Aws::Organizations::Model::CreateOrganizationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateOrganizationRequest.h:30
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::CreateOrganizationRequest
Definition: CreateOrganizationRequest.h:22
Aws::Organizations::Model::CreateOrganizationRequest::SetFeatureSet
void SetFeatureSet(const OrganizationFeatureSet &value)
Definition: CreateOrganizationRequest.h:86
OrganizationsRequest.h
Aws::Organizations::Model::CreateOrganizationRequest::GetFeatureSet
const OrganizationFeatureSet & GetFeatureSet() const
Definition: CreateOrganizationRequest.h:52