AWS SDK for C++

AWS SDK for C++ Version 1.11.921

Loading...
Searching...
No Matches
PutResourcePolicyRequest.h
1
6#pragma once
7#include <aws/continuum/ContinuumRequest.h>
8#include <aws/continuum/Continuum_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Continuum {
15namespace Model {
16
23 public:
24 AWS_CONTINUUM_API PutResourcePolicyRequest() = default;
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 "PutResourcePolicy"; }
31
32 AWS_CONTINUUM_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetArn() const { return m_arn; }
39 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
40 template <typename ArnT = Aws::String>
41 void SetArn(ArnT&& value) {
42 m_arnHasBeenSet = true;
43 m_arn = std::forward<ArnT>(value);
44 }
45 template <typename ArnT = Aws::String>
47 SetArn(std::forward<ArnT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::String& GetPolicy() const { return m_policy; }
60 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
61 template <typename PolicyT = Aws::String>
62 void SetPolicy(PolicyT&& value) {
63 m_policyHasBeenSet = true;
64 m_policy = std::forward<PolicyT>(value);
65 }
66 template <typename PolicyT = Aws::String>
68 SetPolicy(std::forward<PolicyT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetExpectedRevisionId() const { return m_expectedRevisionId; }
78 inline bool ExpectedRevisionIdHasBeenSet() const { return m_expectedRevisionIdHasBeenSet; }
79 template <typename ExpectedRevisionIdT = Aws::String>
80 void SetExpectedRevisionId(ExpectedRevisionIdT&& value) {
81 m_expectedRevisionIdHasBeenSet = true;
82 m_expectedRevisionId = std::forward<ExpectedRevisionIdT>(value);
83 }
84 template <typename ExpectedRevisionIdT = Aws::String>
85 PutResourcePolicyRequest& WithExpectedRevisionId(ExpectedRevisionIdT&& value) {
86 SetExpectedRevisionId(std::forward<ExpectedRevisionIdT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_arn;
92
93 Aws::String m_policy;
94
95 Aws::String m_expectedRevisionId;
96 bool m_arnHasBeenSet = false;
97 bool m_policyHasBeenSet = false;
98 bool m_expectedRevisionIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Continuum
103} // namespace Aws
AWS_CONTINUUM_API Aws::String SerializePayload() const override
PutResourcePolicyRequest & WithArn(ArnT &&value)
PutResourcePolicyRequest & WithExpectedRevisionId(ExpectedRevisionIdT &&value)
void SetExpectedRevisionId(ExpectedRevisionIdT &&value)
AWS_CONTINUUM_API PutResourcePolicyRequest()=default
PutResourcePolicyRequest & WithPolicy(PolicyT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String