AWS SDK for C++

AWS SDK for C++ Version 1.11.848

Loading...
Searching...
No Matches
DeleteResourcePolicyRequest.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 Http {
15class URI;
16} // namespace Http
17namespace BedrockAgent {
18namespace Model {
19
23 public:
24 AWS_BEDROCKAGENT_API DeleteResourcePolicyRequest() = 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 "DeleteResourcePolicy"; }
31
32 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
33
34 AWS_BEDROCKAGENT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
41 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
42 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
43 template <typename ResourceArnT = Aws::String>
45 m_resourceArnHasBeenSet = true;
46 m_resourceArn = std::forward<ResourceArnT>(value);
47 }
48 template <typename ResourceArnT = Aws::String>
50 SetResourceArn(std::forward<ResourceArnT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetExpectedRevisionId() const { return m_expectedRevisionId; }
61 inline bool ExpectedRevisionIdHasBeenSet() const { return m_expectedRevisionIdHasBeenSet; }
62 template <typename ExpectedRevisionIdT = Aws::String>
64 m_expectedRevisionIdHasBeenSet = true;
65 m_expectedRevisionId = std::forward<ExpectedRevisionIdT>(value);
66 }
67 template <typename ExpectedRevisionIdT = Aws::String>
69 SetExpectedRevisionId(std::forward<ExpectedRevisionIdT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_resourceArn;
75
76 Aws::String m_expectedRevisionId;
77 bool m_resourceArnHasBeenSet = false;
78 bool m_expectedRevisionIdHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace BedrockAgent
83} // namespace Aws
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
AWS_BEDROCKAGENT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_BEDROCKAGENT_API DeleteResourcePolicyRequest()=default
DeleteResourcePolicyRequest & WithResourceArn(ResourceArnT &&value)
DeleteResourcePolicyRequest & WithExpectedRevisionId(ExpectedRevisionIdT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String