AWS SDK for C++

AWS SDK for C++ Version 1.11.769

Loading...
Searching...
No Matches
UpdatePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/organizations/OrganizationsRequest.h>
9#include <aws/organizations/Organizations_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Organizations {
15namespace Model {
16
20 public:
21 AWS_ORGANIZATIONS_API UpdatePolicyRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdatePolicy"; }
28
29 AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override;
30
31 AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
40 inline const Aws::String& GetPolicyId() const { return m_policyId; }
41 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
42 template <typename PolicyIdT = Aws::String>
43 void SetPolicyId(PolicyIdT&& value) {
44 m_policyIdHasBeenSet = true;
45 m_policyId = std::forward<PolicyIdT>(value);
46 }
47 template <typename PolicyIdT = Aws::String>
48 UpdatePolicyRequest& WithPolicyId(PolicyIdT&& value) {
49 SetPolicyId(std::forward<PolicyIdT>(value));
50 return *this;
51 }
53
55
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 UpdatePolicyRequest& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 UpdatePolicyRequest& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
104 inline const Aws::String& GetContent() const { return m_content; }
105 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
106 template <typename ContentT = Aws::String>
107 void SetContent(ContentT&& value) {
108 m_contentHasBeenSet = true;
109 m_content = std::forward<ContentT>(value);
110 }
111 template <typename ContentT = Aws::String>
112 UpdatePolicyRequest& WithContent(ContentT&& value) {
113 SetContent(std::forward<ContentT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_policyId;
119
120 Aws::String m_name;
121
122 Aws::String m_description;
123
124 Aws::String m_content;
125 bool m_policyIdHasBeenSet = false;
126 bool m_nameHasBeenSet = false;
127 bool m_descriptionHasBeenSet = false;
128 bool m_contentHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace Organizations
133} // 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