AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
CreatePolicyVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace IoT {
18namespace Model {
19
27 public:
28 AWS_IOT_API CreatePolicyVersionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreatePolicyVersion"; }
35
36 AWS_IOT_API Aws::String SerializePayload() const override;
37
38 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
44 inline const Aws::String& GetPolicyName() const { return m_policyName; }
45 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
46 template <typename PolicyNameT = Aws::String>
47 void SetPolicyName(PolicyNameT&& value) {
48 m_policyNameHasBeenSet = true;
49 m_policyName = std::forward<PolicyNameT>(value);
50 }
51 template <typename PolicyNameT = Aws::String>
53 SetPolicyName(std::forward<PolicyNameT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
64 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
65 template <typename PolicyDocumentT = Aws::String>
66 void SetPolicyDocument(PolicyDocumentT&& value) {
67 m_policyDocumentHasBeenSet = true;
68 m_policyDocument = std::forward<PolicyDocumentT>(value);
69 }
70 template <typename PolicyDocumentT = Aws::String>
72 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
73 return *this;
74 }
76
78
84 inline bool GetSetAsDefault() const { return m_setAsDefault; }
85 inline bool SetAsDefaultHasBeenSet() const { return m_setAsDefaultHasBeenSet; }
86 inline void SetSetAsDefault(bool value) {
87 m_setAsDefaultHasBeenSet = true;
88 m_setAsDefault = value;
89 }
91 SetSetAsDefault(value);
92 return *this;
93 }
95 private:
96 Aws::String m_policyName;
97 bool m_policyNameHasBeenSet = false;
98
99 Aws::String m_policyDocument;
100 bool m_policyDocumentHasBeenSet = false;
101
102 bool m_setAsDefault{false};
103 bool m_setAsDefaultHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace IoT
108} // namespace Aws
AWS_IOT_API Aws::String SerializePayload() const override
CreatePolicyVersionRequest & WithSetAsDefault(bool value)
virtual const char * GetServiceRequestName() const override
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreatePolicyVersionRequest & WithPolicyName(PolicyNameT &&value)
AWS_IOT_API CreatePolicyVersionRequest()=default
CreatePolicyVersionRequest & WithPolicyDocument(PolicyDocumentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String