AWS SDK for C++  1.9.109
AWS SDK for C++
CreatePolicyVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace IoT
19 {
20 namespace Model
21 {
22 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "CreatePolicyVersion"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
48  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
49 
53  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
54 
58  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
59 
63  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
64 
68  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
69 
73  inline CreatePolicyVersionRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
74 
78  inline CreatePolicyVersionRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
79 
83  inline CreatePolicyVersionRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
84 
85 
90  inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
91 
96  inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
97 
102  inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
103 
108  inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
109 
114  inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
115 
120  inline CreatePolicyVersionRequest& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
121 
126  inline CreatePolicyVersionRequest& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
127 
132  inline CreatePolicyVersionRequest& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
133 
134 
141  inline bool GetSetAsDefault() const{ return m_setAsDefault; }
142 
149  inline bool SetAsDefaultHasBeenSet() const { return m_setAsDefaultHasBeenSet; }
150 
157  inline void SetSetAsDefault(bool value) { m_setAsDefaultHasBeenSet = true; m_setAsDefault = value; }
158 
165  inline CreatePolicyVersionRequest& WithSetAsDefault(bool value) { SetSetAsDefault(value); return *this;}
166 
167  private:
168 
169  Aws::String m_policyName;
170  bool m_policyNameHasBeenSet;
171 
172  Aws::String m_policyDocument;
173  bool m_policyDocumentHasBeenSet;
174 
175  bool m_setAsDefault;
176  bool m_setAsDefaultHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace IoT
181 } // namespace Aws
Aws::IoT::Model::CreatePolicyVersionRequest::SetPolicyDocument
void SetPolicyDocument(Aws::String &&value)
Definition: CreatePolicyVersionRequest.h:108
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::CreatePolicyVersionRequest::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: CreatePolicyVersionRequest.h:48
Aws::IoT::Model::CreatePolicyVersionRequest::GetPolicyDocument
const Aws::String & GetPolicyDocument() const
Definition: CreatePolicyVersionRequest.h:90
Aws::IoT::Model::CreatePolicyVersionRequest::WithPolicyName
CreatePolicyVersionRequest & WithPolicyName(const Aws::String &value)
Definition: CreatePolicyVersionRequest.h:73
Aws::IoT::Model::CreatePolicyVersionRequest::CreatePolicyVersionRequest
CreatePolicyVersionRequest()
Aws::IoT::Model::CreatePolicyVersionRequest::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: CreatePolicyVersionRequest.h:58
Aws::IoT::Model::CreatePolicyVersionRequest::WithPolicyName
CreatePolicyVersionRequest & WithPolicyName(Aws::String &&value)
Definition: CreatePolicyVersionRequest.h:78
Aws::IoT::Model::CreatePolicyVersionRequest::WithSetAsDefault
CreatePolicyVersionRequest & WithSetAsDefault(bool value)
Definition: CreatePolicyVersionRequest.h:165
Aws::IoT::Model::CreatePolicyVersionRequest::SetPolicyName
void SetPolicyName(const char *value)
Definition: CreatePolicyVersionRequest.h:68
Aws::IoT::Model::CreatePolicyVersionRequest::SetSetAsDefault
void SetSetAsDefault(bool value)
Definition: CreatePolicyVersionRequest.h:157
Aws::IoT::Model::CreatePolicyVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreatePolicyVersionRequest.h:38
Aws::IoT::Model::CreatePolicyVersionRequest::WithPolicyDocument
CreatePolicyVersionRequest & WithPolicyDocument(const Aws::String &value)
Definition: CreatePolicyVersionRequest.h:120
Aws::IoT::Model::CreatePolicyVersionRequest::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: CreatePolicyVersionRequest.h:63
Aws::IoT::Model::CreatePolicyVersionRequest::GetSetAsDefault
bool GetSetAsDefault() const
Definition: CreatePolicyVersionRequest.h:141
Aws::IoT::Model::CreatePolicyVersionRequest::WithPolicyDocument
CreatePolicyVersionRequest & WithPolicyDocument(const char *value)
Definition: CreatePolicyVersionRequest.h:132
Aws::IoT::Model::CreatePolicyVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::CreatePolicyVersionRequest::PolicyDocumentHasBeenSet
bool PolicyDocumentHasBeenSet() const
Definition: CreatePolicyVersionRequest.h:96
Aws::IoT::Model::CreatePolicyVersionRequest::SetAsDefaultHasBeenSet
bool SetAsDefaultHasBeenSet() const
Definition: CreatePolicyVersionRequest.h:149
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::CreatePolicyVersionRequest::SetPolicyDocument
void SetPolicyDocument(const Aws::String &value)
Definition: CreatePolicyVersionRequest.h:102
Aws::IoT::Model::CreatePolicyVersionRequest::SetPolicyDocument
void SetPolicyDocument(const char *value)
Definition: CreatePolicyVersionRequest.h:114
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::CreatePolicyVersionRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
IoTRequest.h
Aws::IoT::Model::CreatePolicyVersionRequest::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: CreatePolicyVersionRequest.h:53
Aws::IoT::Model::CreatePolicyVersionRequest::WithPolicyDocument
CreatePolicyVersionRequest & WithPolicyDocument(Aws::String &&value)
Definition: CreatePolicyVersionRequest.h:126
Aws::IoT::Model::CreatePolicyVersionRequest
Definition: CreatePolicyVersionRequest.h:30
Aws::IoT::Model::CreatePolicyVersionRequest::WithPolicyName
CreatePolicyVersionRequest & WithPolicyName(const char *value)
Definition: CreatePolicyVersionRequest.h:83
IoT_EXPORTS.h