AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeleteResourcePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CloudWatchLogs {
15namespace Model {
16
20 public:
21 AWS_CLOUDWATCHLOGS_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_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
30
31 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetPolicyName() const { return m_policyName; }
38 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
39 template <typename PolicyNameT = Aws::String>
40 void SetPolicyName(PolicyNameT&& value) {
41 m_policyNameHasBeenSet = true;
42 m_policyName = std::forward<PolicyNameT>(value);
43 }
44 template <typename PolicyNameT = Aws::String>
46 SetPolicyName(std::forward<PolicyNameT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
57 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
58 template <typename ResourceArnT = Aws::String>
59 void SetResourceArn(ResourceArnT&& value) {
60 m_resourceArnHasBeenSet = true;
61 m_resourceArn = std::forward<ResourceArnT>(value);
62 }
63 template <typename ResourceArnT = Aws::String>
65 SetResourceArn(std::forward<ResourceArnT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetExpectedRevisionId() const { return m_expectedRevisionId; }
76 inline bool ExpectedRevisionIdHasBeenSet() const { return m_expectedRevisionIdHasBeenSet; }
77 template <typename ExpectedRevisionIdT = Aws::String>
78 void SetExpectedRevisionId(ExpectedRevisionIdT&& value) {
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_policyName;
90
91 Aws::String m_resourceArn;
92
93 Aws::String m_expectedRevisionId;
94 bool m_policyNameHasBeenSet = false;
95 bool m_resourceArnHasBeenSet = false;
96 bool m_expectedRevisionIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CloudWatchLogs
101} // namespace Aws
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteResourcePolicyRequest & WithExpectedRevisionId(ExpectedRevisionIdT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHLOGS_API DeleteResourcePolicyRequest()=default
DeleteResourcePolicyRequest & WithResourceArn(ResourceArnT &&value)
DeleteResourcePolicyRequest & WithPolicyName(PolicyNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String