AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
PutPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/entityresolution/EntityResolutionRequest.h>
9#include <aws/entityresolution/EntityResolution_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EntityResolution {
15namespace Model {
16
20 public:
21 AWS_ENTITYRESOLUTION_API PutPolicyRequest() = 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 "PutPolicy"; }
28
29 AWS_ENTITYRESOLUTION_API Aws::String SerializePayload() const override;
30
32
36 inline const Aws::String& GetArn() const { return m_arn; }
37 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
38 template <typename ArnT = Aws::String>
39 void SetArn(ArnT&& value) {
40 m_arnHasBeenSet = true;
41 m_arn = std::forward<ArnT>(value);
42 }
43 template <typename ArnT = Aws::String>
44 PutPolicyRequest& WithArn(ArnT&& value) {
45 SetArn(std::forward<ArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetToken() const { return m_token; }
55 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
56 template <typename TokenT = Aws::String>
57 void SetToken(TokenT&& value) {
58 m_tokenHasBeenSet = true;
59 m_token = std::forward<TokenT>(value);
60 }
61 template <typename TokenT = Aws::String>
62 PutPolicyRequest& WithToken(TokenT&& value) {
63 SetToken(std::forward<TokenT>(value));
64 return *this;
65 }
67
69
76 inline const Aws::String& GetPolicy() const { return m_policy; }
77 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
78 template <typename PolicyT = Aws::String>
79 void SetPolicy(PolicyT&& value) {
80 m_policyHasBeenSet = true;
81 m_policy = std::forward<PolicyT>(value);
82 }
83 template <typename PolicyT = Aws::String>
84 PutPolicyRequest& WithPolicy(PolicyT&& value) {
85 SetPolicy(std::forward<PolicyT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_arn;
91
92 Aws::String m_token;
93
94 Aws::String m_policy;
95 bool m_arnHasBeenSet = false;
96 bool m_tokenHasBeenSet = false;
97 bool m_policyHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace EntityResolution
102} // namespace Aws
PutPolicyRequest & WithToken(TokenT &&value)
AWS_ENTITYRESOLUTION_API PutPolicyRequest()=default
AWS_ENTITYRESOLUTION_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
PutPolicyRequest & WithArn(ArnT &&value)
PutPolicyRequest & WithPolicy(PolicyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String