AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
PutResourcePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/organizations/OrganizationsRequest.h>
10#include <aws/organizations/Organizations_EXPORTS.h>
11#include <aws/organizations/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Organizations {
17namespace Model {
18
22 public:
23 AWS_ORGANIZATIONS_API PutResourcePolicyRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutResourcePolicy"; }
30
31 AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override;
32
33 AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
43 inline const Aws::String& GetContent() const { return m_content; }
44 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
45 template <typename ContentT = Aws::String>
46 void SetContent(ContentT&& value) {
47 m_contentHasBeenSet = true;
48 m_content = std::forward<ContentT>(value);
49 }
50 template <typename ContentT = Aws::String>
52 SetContent(std::forward<ContentT>(value));
53 return *this;
54 }
56
58
70 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
71 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
72 template <typename TagsT = Aws::Vector<Tag>>
73 void SetTags(TagsT&& value) {
74 m_tagsHasBeenSet = true;
75 m_tags = std::forward<TagsT>(value);
76 }
77 template <typename TagsT = Aws::Vector<Tag>>
79 SetTags(std::forward<TagsT>(value));
80 return *this;
81 }
82 template <typename TagsT = Tag>
84 m_tagsHasBeenSet = true;
85 m_tags.emplace_back(std::forward<TagsT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_content;
91
92 Aws::Vector<Tag> m_tags;
93 bool m_contentHasBeenSet = false;
94 bool m_tagsHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Organizations
99} // namespace Aws
AWS_ORGANIZATIONS_API PutResourcePolicyRequest()=default
PutResourcePolicyRequest & AddTags(TagsT &&value)
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
PutResourcePolicyRequest & WithContent(ContentT &&value)
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
PutResourcePolicyRequest & WithTags(TagsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector