AWS SDK for C++  1.9.125
AWS SDK for C++
EnablePolicyTypeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Organizations
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "EnablePolicyType"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
44  inline const Aws::String& GetRootId() const{ return m_rootId; }
45 
52  inline bool RootIdHasBeenSet() const { return m_rootIdHasBeenSet; }
53 
60  inline void SetRootId(const Aws::String& value) { m_rootIdHasBeenSet = true; m_rootId = value; }
61 
68  inline void SetRootId(Aws::String&& value) { m_rootIdHasBeenSet = true; m_rootId = std::move(value); }
69 
76  inline void SetRootId(const char* value) { m_rootIdHasBeenSet = true; m_rootId.assign(value); }
77 
84  inline EnablePolicyTypeRequest& WithRootId(const Aws::String& value) { SetRootId(value); return *this;}
85 
92  inline EnablePolicyTypeRequest& WithRootId(Aws::String&& value) { SetRootId(std::move(value)); return *this;}
93 
100  inline EnablePolicyTypeRequest& WithRootId(const char* value) { SetRootId(value); return *this;}
101 
102 
115  inline const PolicyType& GetPolicyType() const{ return m_policyType; }
116 
129  inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
130 
143  inline void SetPolicyType(const PolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
144 
157  inline void SetPolicyType(PolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
158 
171  inline EnablePolicyTypeRequest& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;}
172 
185  inline EnablePolicyTypeRequest& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
186 
187  private:
188 
189  Aws::String m_rootId;
190  bool m_rootIdHasBeenSet;
191 
192  PolicyType m_policyType;
193  bool m_policyTypeHasBeenSet;
194  };
195 
196 } // namespace Model
197 } // namespace Organizations
198 } // namespace Aws
Aws::Organizations::Model::EnablePolicyTypeRequest::EnablePolicyTypeRequest
EnablePolicyTypeRequest()
Aws::Organizations::Model::EnablePolicyTypeRequest::SetRootId
void SetRootId(Aws::String &&value)
Definition: EnablePolicyTypeRequest.h:68
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::EnablePolicyTypeRequest::GetPolicyType
const PolicyType & GetPolicyType() const
Definition: EnablePolicyTypeRequest.h:115
Aws::Organizations::Model::EnablePolicyTypeRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::EnablePolicyTypeRequest::SetRootId
void SetRootId(const char *value)
Definition: EnablePolicyTypeRequest.h:76
Aws::Organizations::Model::EnablePolicyTypeRequest::WithRootId
EnablePolicyTypeRequest & WithRootId(Aws::String &&value)
Definition: EnablePolicyTypeRequest.h:92
Aws::Organizations::Model::EnablePolicyTypeRequest::WithPolicyType
EnablePolicyTypeRequest & WithPolicyType(PolicyType &&value)
Definition: EnablePolicyTypeRequest.h:185
PolicyType.h
Aws::Organizations::Model::EnablePolicyTypeRequest::WithRootId
EnablePolicyTypeRequest & WithRootId(const Aws::String &value)
Definition: EnablePolicyTypeRequest.h:84
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::PolicyType
PolicyType
Definition: PolicyType.h:17
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::EnablePolicyTypeRequest::SetPolicyType
void SetPolicyType(PolicyType &&value)
Definition: EnablePolicyTypeRequest.h:157
AWSString.h
Aws::Organizations::Model::EnablePolicyTypeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::EnablePolicyTypeRequest::PolicyTypeHasBeenSet
bool PolicyTypeHasBeenSet() const
Definition: EnablePolicyTypeRequest.h:129
Aws::Organizations::Model::EnablePolicyTypeRequest
Definition: EnablePolicyTypeRequest.h:23
Aws::Organizations::Model::EnablePolicyTypeRequest::WithPolicyType
EnablePolicyTypeRequest & WithPolicyType(const PolicyType &value)
Definition: EnablePolicyTypeRequest.h:171
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::EnablePolicyTypeRequest::SetRootId
void SetRootId(const Aws::String &value)
Definition: EnablePolicyTypeRequest.h:60
Aws::Organizations::Model::EnablePolicyTypeRequest::GetRootId
const Aws::String & GetRootId() const
Definition: EnablePolicyTypeRequest.h:44
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::EnablePolicyTypeRequest::RootIdHasBeenSet
bool RootIdHasBeenSet() const
Definition: EnablePolicyTypeRequest.h:52
Aws::Organizations::Model::EnablePolicyTypeRequest::SetPolicyType
void SetPolicyType(const PolicyType &value)
Definition: EnablePolicyTypeRequest.h:143
Aws::Organizations::Model::EnablePolicyTypeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: EnablePolicyTypeRequest.h:31
Aws::Organizations::Model::EnablePolicyTypeRequest::WithRootId
EnablePolicyTypeRequest & WithRootId(const char *value)
Definition: EnablePolicyTypeRequest.h:100
OrganizationsRequest.h