AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
50 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
51 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
52 inline PutResourcePolicyRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
53 inline PutResourcePolicyRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
54 inline PutResourcePolicyRequest& WithContent(const char* value) { SetContent(value); return *this;}
56
58
70 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
71 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
72 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
73 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
74 inline PutResourcePolicyRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
75 inline PutResourcePolicyRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
76 inline PutResourcePolicyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
77 inline PutResourcePolicyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
79 private:
80
81 Aws::String m_content;
82 bool m_contentHasBeenSet = false;
83
84 Aws::Vector<Tag> m_tags;
85 bool m_tagsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Organizations
90} // namespace Aws
PutResourcePolicyRequest & AddTags(const Tag &value)
PutResourcePolicyRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
PutResourcePolicyRequest & WithContent(Aws::String &&value)
PutResourcePolicyRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
PutResourcePolicyRequest & WithContent(const char *value)
PutResourcePolicyRequest & WithContent(const Aws::String &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