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/xray/XRayRequest.h>
9#include <aws/xray/XRay_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace XRay {
15namespace Model {
16
20 public:
21 AWS_XRAY_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_XRAY_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetPolicyName() const { return m_policyName; }
36 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
37 template <typename PolicyNameT = Aws::String>
38 void SetPolicyName(PolicyNameT&& value) {
39 m_policyNameHasBeenSet = true;
40 m_policyName = std::forward<PolicyNameT>(value);
41 }
42 template <typename PolicyNameT = Aws::String>
44 SetPolicyName(std::forward<PolicyNameT>(value));
45 return *this;
46 }
48
50
56 inline const Aws::String& GetPolicyRevisionId() const { return m_policyRevisionId; }
57 inline bool PolicyRevisionIdHasBeenSet() const { return m_policyRevisionIdHasBeenSet; }
58 template <typename PolicyRevisionIdT = Aws::String>
59 void SetPolicyRevisionId(PolicyRevisionIdT&& value) {
60 m_policyRevisionIdHasBeenSet = true;
61 m_policyRevisionId = std::forward<PolicyRevisionIdT>(value);
62 }
63 template <typename PolicyRevisionIdT = Aws::String>
65 SetPolicyRevisionId(std::forward<PolicyRevisionIdT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_policyName;
71
72 Aws::String m_policyRevisionId;
73 bool m_policyNameHasBeenSet = false;
74 bool m_policyRevisionIdHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace XRay
79} // namespace Aws
AWS_XRAY_API Aws::String SerializePayload() const override
DeleteResourcePolicyRequest & WithPolicyName(PolicyNameT &&value)
DeleteResourcePolicyRequest & WithPolicyRevisionId(PolicyRevisionIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_XRAY_API DeleteResourcePolicyRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String