AWS SDK for C++  1.9.66
AWS SDK for C++
DescribePolicyRequest.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 "DescribePolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
44  inline const Aws::String& GetPolicyId() const{ return m_policyId; }
45 
53  inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
54 
62  inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
63 
71  inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
72 
80  inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
81 
89  inline DescribePolicyRequest& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
90 
98  inline DescribePolicyRequest& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
99 
107  inline DescribePolicyRequest& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
108 
109  private:
110 
111  Aws::String m_policyId;
112  bool m_policyIdHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace Organizations
117 } // namespace Aws
Aws::Organizations::Model::DescribePolicyRequest::SetPolicyId
void SetPolicyId(Aws::String &&value)
Definition: DescribePolicyRequest.h:71
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::DescribePolicyRequest::WithPolicyId
DescribePolicyRequest & WithPolicyId(const Aws::String &value)
Definition: DescribePolicyRequest.h:89
Aws::Organizations::Model::DescribePolicyRequest::PolicyIdHasBeenSet
bool PolicyIdHasBeenSet() const
Definition: DescribePolicyRequest.h:53
Aws::Organizations::Model::DescribePolicyRequest
Definition: DescribePolicyRequest.h:22
Aws::Organizations::Model::DescribePolicyRequest::WithPolicyId
DescribePolicyRequest & WithPolicyId(const char *value)
Definition: DescribePolicyRequest.h:107
Aws::Organizations::Model::DescribePolicyRequest::SetPolicyId
void SetPolicyId(const Aws::String &value)
Definition: DescribePolicyRequest.h:62
Aws::Organizations::Model::DescribePolicyRequest::DescribePolicyRequest
DescribePolicyRequest()
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::DescribePolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribePolicyRequest.h:30
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
AWSString.h
Aws::Organizations::Model::DescribePolicyRequest::GetPolicyId
const Aws::String & GetPolicyId() const
Definition: DescribePolicyRequest.h:44
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::DescribePolicyRequest::SetPolicyId
void SetPolicyId(const char *value)
Definition: DescribePolicyRequest.h:80
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::DescribePolicyRequest::WithPolicyId
DescribePolicyRequest & WithPolicyId(Aws::String &&value)
Definition: DescribePolicyRequest.h:98
Organizations_EXPORTS.h
Aws::Organizations::Model::DescribePolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::DescribePolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
OrganizationsRequest.h