AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PutResourcePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rum/CloudWatchRUMRequest.h>
9#include <aws/rum/CloudWatchRUM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CloudWatchRUM {
15namespace Model {
16
20 public:
21 AWS_CLOUDWATCHRUM_API PutResourcePolicyRequest() = 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 "PutResourcePolicy"; }
28
29 AWS_CLOUDWATCHRUM_API Aws::String SerializePayload() const override;
30
32
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
60 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
61 template <typename PolicyDocumentT = Aws::String>
62 void SetPolicyDocument(PolicyDocumentT&& value) {
63 m_policyDocumentHasBeenSet = true;
64 m_policyDocument = std::forward<PolicyDocumentT>(value);
65 }
66 template <typename PolicyDocumentT = Aws::String>
67 PutResourcePolicyRequest& WithPolicyDocument(PolicyDocumentT&& value) {
68 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
69 return *this;
70 }
72
74
82 inline const Aws::String& GetPolicyRevisionId() const { return m_policyRevisionId; }
83 inline bool PolicyRevisionIdHasBeenSet() const { return m_policyRevisionIdHasBeenSet; }
84 template <typename PolicyRevisionIdT = Aws::String>
85 void SetPolicyRevisionId(PolicyRevisionIdT&& value) {
86 m_policyRevisionIdHasBeenSet = true;
87 m_policyRevisionId = std::forward<PolicyRevisionIdT>(value);
88 }
89 template <typename PolicyRevisionIdT = Aws::String>
90 PutResourcePolicyRequest& WithPolicyRevisionId(PolicyRevisionIdT&& value) {
91 SetPolicyRevisionId(std::forward<PolicyRevisionIdT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_name;
97
98 Aws::String m_policyDocument;
99
100 Aws::String m_policyRevisionId;
101 bool m_nameHasBeenSet = false;
102 bool m_policyDocumentHasBeenSet = false;
103 bool m_policyRevisionIdHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace CloudWatchRUM
108} // namespace Aws
PutResourcePolicyRequest & WithName(NameT &&value)
PutResourcePolicyRequest & WithPolicyDocument(PolicyDocumentT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDWATCHRUM_API PutResourcePolicyRequest()=default
AWS_CLOUDWATCHRUM_API Aws::String SerializePayload() const override
PutResourcePolicyRequest & WithPolicyRevisionId(PolicyRevisionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String