AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DeleteResourcePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SSM {
15namespace Model {
16
20 public:
21 AWS_SSM_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_SSM_API Aws::String SerializePayload() const override;
30
32
34
38 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
39 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
40 template <typename ResourceArnT = Aws::String>
41 void SetResourceArn(ResourceArnT&& value) {
42 m_resourceArnHasBeenSet = true;
43 m_resourceArn = std::forward<ResourceArnT>(value);
44 }
45 template <typename ResourceArnT = Aws::String>
47 SetResourceArn(std::forward<ResourceArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetPolicyId() const { return m_policyId; }
57 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
58 template <typename PolicyIdT = Aws::String>
59 void SetPolicyId(PolicyIdT&& value) {
60 m_policyIdHasBeenSet = true;
61 m_policyId = std::forward<PolicyIdT>(value);
62 }
63 template <typename PolicyIdT = Aws::String>
65 SetPolicyId(std::forward<PolicyIdT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetPolicyHash() const { return m_policyHash; }
76 inline bool PolicyHashHasBeenSet() const { return m_policyHashHasBeenSet; }
77 template <typename PolicyHashT = Aws::String>
78 void SetPolicyHash(PolicyHashT&& value) {
79 m_policyHashHasBeenSet = true;
80 m_policyHash = std::forward<PolicyHashT>(value);
81 }
82 template <typename PolicyHashT = Aws::String>
84 SetPolicyHash(std::forward<PolicyHashT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_resourceArn;
90
91 Aws::String m_policyId;
92
93 Aws::String m_policyHash;
94 bool m_resourceArnHasBeenSet = false;
95 bool m_policyIdHasBeenSet = false;
96 bool m_policyHashHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace SSM
101} // namespace Aws
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SSM_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
DeleteResourcePolicyRequest & WithPolicyHash(PolicyHashT &&value)
AWS_SSM_API DeleteResourcePolicyRequest()=default
DeleteResourcePolicyRequest & WithResourceArn(ResourceArnT &&value)
DeleteResourcePolicyRequest & WithPolicyId(PolicyIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String