AWS SDK for C++

AWS SDK for C++ Version 1.11.848

Loading...
Searching...
No Matches
PutResourcePolicyRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgentRequest.h>
8#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace BedrockAgent {
15namespace Model {
16
20 public:
21 AWS_BEDROCKAGENT_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_BEDROCKAGENT_API Aws::String SerializePayload() const override;
30
32
36 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
37 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
38 template <typename ResourceArnT = Aws::String>
40 m_resourceArnHasBeenSet = true;
41 m_resourceArn = std::forward<ResourceArnT>(value);
42 }
43 template <typename ResourceArnT = Aws::String>
45 SetResourceArn(std::forward<ResourceArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetPolicy() const { return m_policy; }
55 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
56 template <typename PolicyT = Aws::String>
57 void SetPolicy(PolicyT&& value) {
58 m_policyHasBeenSet = true;
59 m_policy = std::forward<PolicyT>(value);
60 }
61 template <typename PolicyT = Aws::String>
63 SetPolicy(std::forward<PolicyT>(value));
64 return *this;
65 }
67
69
75 inline const Aws::String& GetExpectedRevisionId() const { return m_expectedRevisionId; }
76 inline bool ExpectedRevisionIdHasBeenSet() const { return m_expectedRevisionIdHasBeenSet; }
77 template <typename ExpectedRevisionIdT = Aws::String>
79 m_expectedRevisionIdHasBeenSet = true;
80 m_expectedRevisionId = std::forward<ExpectedRevisionIdT>(value);
81 }
82 template <typename ExpectedRevisionIdT = Aws::String>
84 SetExpectedRevisionId(std::forward<ExpectedRevisionIdT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_resourceArn;
90
91 Aws::String m_policy;
92
93 Aws::String m_expectedRevisionId;
94 bool m_resourceArnHasBeenSet = false;
95 bool m_policyHasBeenSet = false;
96 bool m_expectedRevisionIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace BedrockAgent
101} // namespace Aws
PutResourcePolicyRequest & WithResourceArn(ResourceArnT &&value)
AWS_BEDROCKAGENT_API PutResourcePolicyRequest()=default
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
PutResourcePolicyRequest & WithExpectedRevisionId(ExpectedRevisionIdT &&value)
virtual const char * GetServiceRequestName() const override
PutResourcePolicyRequest & WithPolicy(PolicyT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String