AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutPolicyRequest.h
1
6#pragma once
7#include <aws/entityresolution/EntityResolution_EXPORTS.h>
8#include <aws/entityresolution/EntityResolutionRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace EntityResolution
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_ENTITYRESOLUTION_API PutPolicyRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "PutPolicy"; }
31
32 AWS_ENTITYRESOLUTION_API Aws::String SerializePayload() const override;
33
34
36
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template<typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
44 template<typename ArnT = Aws::String>
45 PutPolicyRequest& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
47
49
52 inline const Aws::String& GetToken() const { return m_token; }
53 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
54 template<typename TokenT = Aws::String>
55 void SetToken(TokenT&& value) { m_tokenHasBeenSet = true; m_token = std::forward<TokenT>(value); }
56 template<typename TokenT = Aws::String>
57 PutPolicyRequest& WithToken(TokenT&& value) { SetToken(std::forward<TokenT>(value)); return *this;}
59
61
68 inline const Aws::String& GetPolicy() const { return m_policy; }
69 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
70 template<typename PolicyT = Aws::String>
71 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
72 template<typename PolicyT = Aws::String>
73 PutPolicyRequest& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
75 private:
76
77 Aws::String m_arn;
78 bool m_arnHasBeenSet = false;
79
80 Aws::String m_token;
81 bool m_tokenHasBeenSet = false;
82
83 Aws::String m_policy;
84 bool m_policyHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace EntityResolution
89} // 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