AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
32 AWS_IOT_API CreatePolicyVersionRequest() = default;
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 template<typename PolicyNameT = Aws::String>
52 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
53 template<typename PolicyNameT = Aws::String>
54 CreatePolicyVersionRequest& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
56
58
62 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
63 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
64 template<typename PolicyDocumentT = Aws::String>
65 void SetPolicyDocument(PolicyDocumentT&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::forward<PolicyDocumentT>(value); }
66 template<typename PolicyDocumentT = Aws::String>
67 CreatePolicyVersionRequest& WithPolicyDocument(PolicyDocumentT&& value) { SetPolicyDocument(std::forward<PolicyDocumentT>(value)); return *this;}
69
71
77 inline bool GetSetAsDefault() const { return m_setAsDefault; }
78 inline bool SetAsDefaultHasBeenSet() const { return m_setAsDefaultHasBeenSet; }
79 inline void SetSetAsDefault(bool value) { m_setAsDefaultHasBeenSet = true; m_setAsDefault = value; }
80 inline CreatePolicyVersionRequest& WithSetAsDefault(bool value) { SetSetAsDefault(value); return *this;}
82 private:
83
84 Aws::String m_policyName;
85 bool m_policyNameHasBeenSet = false;
86
87 Aws::String m_policyDocument;
88 bool m_policyDocumentHasBeenSet = false;
89
90 bool m_setAsDefault{false};
91 bool m_setAsDefaultHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace IoT
96} // 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