AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
47 inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
48 inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
49 inline UpdatePolicyRequest& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
50 inline UpdatePolicyRequest& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
51 inline UpdatePolicyRequest& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
53
55
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline UpdatePolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline UpdatePolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline UpdatePolicyRequest& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline UpdatePolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline UpdatePolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline UpdatePolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
96 inline const Aws::String& GetContent() const{ return m_content; }
97 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
98 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
99 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
100 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
101 inline UpdatePolicyRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
102 inline UpdatePolicyRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
103 inline UpdatePolicyRequest& WithContent(const char* value) { SetContent(value); return *this;}
105 private:
106
107 Aws::String m_policyId;
108 bool m_policyIdHasBeenSet = false;
109
110 Aws::String m_name;
111 bool m_nameHasBeenSet = false;
112
113 Aws::String m_description;
114 bool m_descriptionHasBeenSet = false;
115
116 Aws::String m_content;
117 bool m_contentHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Organizations
122} // namespace Aws
UpdatePolicyRequest & WithDescription(const Aws::String &value)
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdatePolicyRequest & WithContent(const Aws::String &value)
UpdatePolicyRequest & WithDescription(Aws::String &&value)
UpdatePolicyRequest & WithContent(const char *value)
UpdatePolicyRequest & WithContent(Aws::String &&value)
UpdatePolicyRequest & WithPolicyId(const char *value)
UpdatePolicyRequest & WithName(Aws::String &&value)
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
UpdatePolicyRequest & WithName(const char *value)
virtual const char * GetServiceRequestName() const override
UpdatePolicyRequest & WithPolicyId(const Aws::String &value)
UpdatePolicyRequest & WithDescription(const char *value)
UpdatePolicyRequest & WithName(const Aws::String &value)
UpdatePolicyRequest & WithPolicyId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String