AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreatePolicyResult.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13template<typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace IoT
24{
25namespace Model
26{
33 {
34 public:
35 AWS_IOT_API CreatePolicyResult() = default;
38
39
41
44 inline const Aws::String& GetPolicyName() const { return m_policyName; }
45 template<typename PolicyNameT = Aws::String>
46 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
47 template<typename PolicyNameT = Aws::String>
48 CreatePolicyResult& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
56 template<typename PolicyArnT = Aws::String>
57 void SetPolicyArn(PolicyArnT&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::forward<PolicyArnT>(value); }
58 template<typename PolicyArnT = Aws::String>
59 CreatePolicyResult& WithPolicyArn(PolicyArnT&& value) { SetPolicyArn(std::forward<PolicyArnT>(value)); return *this;}
61
63
66 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
67 template<typename PolicyDocumentT = Aws::String>
68 void SetPolicyDocument(PolicyDocumentT&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::forward<PolicyDocumentT>(value); }
69 template<typename PolicyDocumentT = Aws::String>
70 CreatePolicyResult& WithPolicyDocument(PolicyDocumentT&& value) { SetPolicyDocument(std::forward<PolicyDocumentT>(value)); return *this;}
72
74
77 inline const Aws::String& GetPolicyVersionId() const { return m_policyVersionId; }
78 template<typename PolicyVersionIdT = Aws::String>
79 void SetPolicyVersionId(PolicyVersionIdT&& value) { m_policyVersionIdHasBeenSet = true; m_policyVersionId = std::forward<PolicyVersionIdT>(value); }
80 template<typename PolicyVersionIdT = Aws::String>
81 CreatePolicyResult& WithPolicyVersionId(PolicyVersionIdT&& value) { SetPolicyVersionId(std::forward<PolicyVersionIdT>(value)); return *this;}
83
85
86 inline const Aws::String& GetRequestId() const { return m_requestId; }
87 template<typename RequestIdT = Aws::String>
88 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
89 template<typename RequestIdT = Aws::String>
90 CreatePolicyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
92 private:
93
94 Aws::String m_policyName;
95 bool m_policyNameHasBeenSet = false;
96
97 Aws::String m_policyArn;
98 bool m_policyArnHasBeenSet = false;
99
100 Aws::String m_policyDocument;
101 bool m_policyDocumentHasBeenSet = false;
102
103 Aws::String m_policyVersionId;
104 bool m_policyVersionIdHasBeenSet = false;
105
106 Aws::String m_requestId;
107 bool m_requestIdHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace IoT
112} // namespace Aws
void SetPolicyName(PolicyNameT &&value)
AWS_IOT_API CreatePolicyResult()=default
void SetPolicyVersionId(PolicyVersionIdT &&value)
CreatePolicyResult & WithPolicyVersionId(PolicyVersionIdT &&value)
void SetPolicyArn(PolicyArnT &&value)
CreatePolicyResult & WithPolicyName(PolicyNameT &&value)
void SetRequestId(RequestIdT &&value)
AWS_IOT_API CreatePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_IOT_API CreatePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetPolicyDocument(PolicyDocumentT &&value)
CreatePolicyResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
CreatePolicyResult & WithPolicyDocument(PolicyDocumentT &&value)
const Aws::String & GetPolicyVersionId() const
const Aws::String & GetPolicyArn() const
const Aws::String & GetPolicyName() const
const Aws::String & GetPolicyDocument() const
CreatePolicyResult & WithPolicyArn(PolicyArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue