AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePolicyVersionRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace IoT
19{
20namespace 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_IOT_API Aws::String SerializePayload() const override;
41
42 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
49 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
50 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
51 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
52 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
53 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
54 inline CreatePolicyVersionRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
55 inline CreatePolicyVersionRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
56 inline CreatePolicyVersionRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
58
60
64 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
65 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
66 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
67 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
68 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
69 inline CreatePolicyVersionRequest& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
70 inline CreatePolicyVersionRequest& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
71 inline CreatePolicyVersionRequest& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
73
75
81 inline bool GetSetAsDefault() const{ return m_setAsDefault; }
82 inline bool SetAsDefaultHasBeenSet() const { return m_setAsDefaultHasBeenSet; }
83 inline void SetSetAsDefault(bool value) { m_setAsDefaultHasBeenSet = true; m_setAsDefault = value; }
84 inline CreatePolicyVersionRequest& WithSetAsDefault(bool value) { SetSetAsDefault(value); return *this;}
86 private:
87
88 Aws::String m_policyName;
89 bool m_policyNameHasBeenSet = false;
90
91 Aws::String m_policyDocument;
92 bool m_policyDocumentHasBeenSet = false;
93
94 bool m_setAsDefault;
95 bool m_setAsDefaultHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace IoT
100} // namespace Aws
CreatePolicyVersionRequest & WithPolicyName(const Aws::String &value)
AWS_IOT_API Aws::String SerializePayload() const override
CreatePolicyVersionRequest & WithPolicyDocument(const Aws::String &value)
CreatePolicyVersionRequest & WithSetAsDefault(bool value)
CreatePolicyVersionRequest & WithPolicyDocument(Aws::String &&value)
CreatePolicyVersionRequest & WithPolicyName(const char *value)
virtual const char * GetServiceRequestName() const override
CreatePolicyVersionRequest & WithPolicyDocument(const char *value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreatePolicyVersionRequest & WithPolicyName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String