AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
PutDataProtectionPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sns/SNSRequest.h>
9#include <aws/sns/SNS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SNS {
15namespace Model {
16
20 public:
21 AWS_SNS_API PutDataProtectionPolicyRequest() = 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 "PutDataProtectionPolicy"; }
28
29 AWS_SNS_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
42 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
43 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
44 template <typename ResourceArnT = Aws::String>
45 void SetResourceArn(ResourceArnT&& value) {
46 m_resourceArnHasBeenSet = true;
47 m_resourceArn = std::forward<ResourceArnT>(value);
48 }
49 template <typename ResourceArnT = Aws::String>
51 SetResourceArn(std::forward<ResourceArnT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetDataProtectionPolicy() const { return m_dataProtectionPolicy; }
63 inline bool DataProtectionPolicyHasBeenSet() const { return m_dataProtectionPolicyHasBeenSet; }
64 template <typename DataProtectionPolicyT = Aws::String>
65 void SetDataProtectionPolicy(DataProtectionPolicyT&& value) {
66 m_dataProtectionPolicyHasBeenSet = true;
67 m_dataProtectionPolicy = std::forward<DataProtectionPolicyT>(value);
68 }
69 template <typename DataProtectionPolicyT = Aws::String>
71 SetDataProtectionPolicy(std::forward<DataProtectionPolicyT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_resourceArn;
77
78 Aws::String m_dataProtectionPolicy;
79 bool m_resourceArnHasBeenSet = false;
80 bool m_dataProtectionPolicyHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace SNS
85} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_SNS_API Aws::String SerializePayload() const override
PutDataProtectionPolicyRequest & WithDataProtectionPolicy(DataProtectionPolicyT &&value)
PutDataProtectionPolicyRequest & WithResourceArn(ResourceArnT &&value)
AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String