AWS SDK for C++

AWS SDK for C++ Version 1.11.876

Loading...
Searching...
No Matches
PutResourcePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda/LambdaRequest.h>
9#include <aws/lambda/Lambda_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Lambda {
15namespace Model {
16
20 public:
21 AWS_LAMBDA_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_LAMBDA_API Aws::String SerializePayload() const override;
30
32
37 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
38 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
39 template <typename ResourceArnT = Aws::String>
40 void SetResourceArn(ResourceArnT&& value) {
41 m_resourceArnHasBeenSet = true;
42 m_resourceArn = std::forward<ResourceArnT>(value);
43 }
44 template <typename ResourceArnT = Aws::String>
46 SetResourceArn(std::forward<ResourceArnT>(value));
47 return *this;
48 }
50
52
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
80 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
81 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
82 template <typename RevisionIdT = Aws::String>
83 void SetRevisionId(RevisionIdT&& value) {
84 m_revisionIdHasBeenSet = true;
85 m_revisionId = std::forward<RevisionIdT>(value);
86 }
87 template <typename RevisionIdT = Aws::String>
89 SetRevisionId(std::forward<RevisionIdT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_resourceArn;
95
96 Aws::String m_policy;
97
98 Aws::String m_revisionId;
99 bool m_resourceArnHasBeenSet = false;
100 bool m_policyHasBeenSet = false;
101 bool m_revisionIdHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace Lambda
106} // namespace Aws
PutResourcePolicyRequest & WithResourceArn(ResourceArnT &&value)
virtual const char * GetServiceRequestName() const override
PutResourcePolicyRequest & WithRevisionId(RevisionIdT &&value)
PutResourcePolicyRequest & WithPolicy(PolicyT &&value)
AWS_LAMBDA_API Aws::String SerializePayload() const override
AWS_LAMBDA_API PutResourcePolicyRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String