AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DeleteResourcePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dynamodb/DynamoDBRequest.h>
9#include <aws/dynamodb/DynamoDB_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace DynamoDB {
15namespace Model {
16
20 public:
21 AWS_DYNAMODB_API DeleteResourcePolicyRequest() = 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 "DeleteResourcePolicy"; }
28
29 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
30
32
36 AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override;
37
39
46 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
47 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
48 template <typename ResourceArnT = Aws::String>
49 void SetResourceArn(ResourceArnT&& value) {
50 m_resourceArnHasBeenSet = true;
51 m_resourceArn = std::forward<ResourceArnT>(value);
52 }
53 template <typename ResourceArnT = Aws::String>
55 SetResourceArn(std::forward<ResourceArnT>(value));
56 return *this;
57 }
59
61
67 inline const Aws::String& GetExpectedRevisionId() const { return m_expectedRevisionId; }
68 inline bool ExpectedRevisionIdHasBeenSet() const { return m_expectedRevisionIdHasBeenSet; }
69 template <typename ExpectedRevisionIdT = Aws::String>
70 void SetExpectedRevisionId(ExpectedRevisionIdT&& value) {
71 m_expectedRevisionIdHasBeenSet = true;
72 m_expectedRevisionId = std::forward<ExpectedRevisionIdT>(value);
73 }
74 template <typename ExpectedRevisionIdT = Aws::String>
76 SetExpectedRevisionId(std::forward<ExpectedRevisionIdT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_resourceArn;
82
83 Aws::String m_expectedRevisionId;
84 bool m_resourceArnHasBeenSet = false;
85 bool m_expectedRevisionIdHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace DynamoDB
90} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
DeleteResourcePolicyRequest & WithExpectedRevisionId(ExpectedRevisionIdT &&value)
DeleteResourcePolicyRequest & WithResourceArn(ResourceArnT &&value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override
virtual const char * GetServiceRequestName() const override
AWS_DYNAMODB_API DeleteResourcePolicyRequest()=default
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String