AWS SDK for C++

AWS SDK for C++ Version 1.11.817

Loading...
Searching...
No Matches
DeletePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2Request.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace resiliencehubv2 {
15namespace Model {
16
20 public:
21 AWS_RESILIENCEHUBV2_API DeletePolicyRequest() = 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 "DeletePolicy"; }
28
29 AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override;
30
32
33 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
34 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
35 template <typename PolicyArnT = Aws::String>
36 void SetPolicyArn(PolicyArnT&& value) {
37 m_policyArnHasBeenSet = true;
38 m_policyArn = std::forward<PolicyArnT>(value);
39 }
40 template <typename PolicyArnT = Aws::String>
41 DeletePolicyRequest& WithPolicyArn(PolicyArnT&& value) {
42 SetPolicyArn(std::forward<PolicyArnT>(value));
43 return *this;
44 }
46 private:
47 Aws::String m_policyArn;
48 bool m_policyArnHasBeenSet = false;
49};
50
51} // namespace Model
52} // namespace resiliencehubv2
53} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_RESILIENCEHUBV2_API DeletePolicyRequest()=default
AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override
DeletePolicyRequest & WithPolicyArn(PolicyArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String