AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdatePolicyRequest.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/organizations/OrganizationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Organizations
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_ORGANIZATIONS_API UpdatePolicyRequest() = default;
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 "UpdatePolicy"; }
31
32 AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override;
33
34 AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
44 inline const Aws::String& GetPolicyId() const { return m_policyId; }
45 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
46 template<typename PolicyIdT = Aws::String>
47 void SetPolicyId(PolicyIdT&& value) { m_policyIdHasBeenSet = true; m_policyId = std::forward<PolicyIdT>(value); }
48 template<typename PolicyIdT = Aws::String>
49 UpdatePolicyRequest& WithPolicyId(PolicyIdT&& value) { SetPolicyId(std::forward<PolicyIdT>(value)); return *this;}
51
53
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 UpdatePolicyRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template<typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
75 template<typename DescriptionT = Aws::String>
76 UpdatePolicyRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
78
80
90 inline const Aws::String& GetContent() const { return m_content; }
91 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
92 template<typename ContentT = Aws::String>
93 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
94 template<typename ContentT = Aws::String>
95 UpdatePolicyRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
97 private:
98
99 Aws::String m_policyId;
100 bool m_policyIdHasBeenSet = false;
101
102 Aws::String m_name;
103 bool m_nameHasBeenSet = false;
104
105 Aws::String m_description;
106 bool m_descriptionHasBeenSet = false;
107
108 Aws::String m_content;
109 bool m_contentHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Organizations
114} // namespace Aws
AWS_ORGANIZATIONS_API UpdatePolicyRequest()=default
UpdatePolicyRequest & WithName(NameT &&value)
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdatePolicyRequest & WithContent(ContentT &&value)
UpdatePolicyRequest & WithPolicyId(PolicyIdT &&value)
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
UpdatePolicyRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String