AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutResourcePolicyRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/organizations/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Organizations
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ORGANIZATIONS_API PutResourcePolicyRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutResourcePolicy"; }
33
34 AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override;
35
36 AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
47 inline const Aws::String& GetContent() const { return m_content; }
48 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
49 template<typename ContentT = Aws::String>
50 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
51 template<typename ContentT = Aws::String>
52 PutResourcePolicyRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
54
56
68 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
69 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
70 template<typename TagsT = Aws::Vector<Tag>>
71 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
72 template<typename TagsT = Aws::Vector<Tag>>
73 PutResourcePolicyRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
74 template<typename TagsT = Tag>
75 PutResourcePolicyRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
77 private:
78
79 Aws::String m_content;
80 bool m_contentHasBeenSet = false;
81
82 Aws::Vector<Tag> m_tags;
83 bool m_tagsHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Organizations
88} // 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