AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetPolicyResult.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
34 {
35 public:
36 AWS_IOT_API GetPolicyResult() = default;
39
40
42
45 inline const Aws::String& GetPolicyName() const { return m_policyName; }
46 template<typename PolicyNameT = Aws::String>
47 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
48 template<typename PolicyNameT = Aws::String>
49 GetPolicyResult& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
57 template<typename PolicyArnT = Aws::String>
58 void SetPolicyArn(PolicyArnT&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::forward<PolicyArnT>(value); }
59 template<typename PolicyArnT = Aws::String>
60 GetPolicyResult& WithPolicyArn(PolicyArnT&& value) { SetPolicyArn(std::forward<PolicyArnT>(value)); return *this;}
62
64
67 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
68 template<typename PolicyDocumentT = Aws::String>
69 void SetPolicyDocument(PolicyDocumentT&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::forward<PolicyDocumentT>(value); }
70 template<typename PolicyDocumentT = Aws::String>
71 GetPolicyResult& WithPolicyDocument(PolicyDocumentT&& value) { SetPolicyDocument(std::forward<PolicyDocumentT>(value)); return *this;}
73
75
78 inline const Aws::String& GetDefaultVersionId() const { return m_defaultVersionId; }
79 template<typename DefaultVersionIdT = Aws::String>
80 void SetDefaultVersionId(DefaultVersionIdT&& value) { m_defaultVersionIdHasBeenSet = true; m_defaultVersionId = std::forward<DefaultVersionIdT>(value); }
81 template<typename DefaultVersionIdT = Aws::String>
82 GetPolicyResult& WithDefaultVersionId(DefaultVersionIdT&& value) { SetDefaultVersionId(std::forward<DefaultVersionIdT>(value)); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
90 template<typename CreationDateT = Aws::Utils::DateTime>
91 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
92 template<typename CreationDateT = Aws::Utils::DateTime>
93 GetPolicyResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
101 template<typename LastModifiedDateT = Aws::Utils::DateTime>
102 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
103 template<typename LastModifiedDateT = Aws::Utils::DateTime>
104 GetPolicyResult& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
106
108
111 inline const Aws::String& GetGenerationId() const { return m_generationId; }
112 template<typename GenerationIdT = Aws::String>
113 void SetGenerationId(GenerationIdT&& value) { m_generationIdHasBeenSet = true; m_generationId = std::forward<GenerationIdT>(value); }
114 template<typename GenerationIdT = Aws::String>
115 GetPolicyResult& WithGenerationId(GenerationIdT&& value) { SetGenerationId(std::forward<GenerationIdT>(value)); return *this;}
117
119
120 inline const Aws::String& GetRequestId() const { return m_requestId; }
121 template<typename RequestIdT = Aws::String>
122 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
123 template<typename RequestIdT = Aws::String>
124 GetPolicyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
126 private:
127
128 Aws::String m_policyName;
129 bool m_policyNameHasBeenSet = false;
130
131 Aws::String m_policyArn;
132 bool m_policyArnHasBeenSet = false;
133
134 Aws::String m_policyDocument;
135 bool m_policyDocumentHasBeenSet = false;
136
137 Aws::String m_defaultVersionId;
138 bool m_defaultVersionIdHasBeenSet = false;
139
140 Aws::Utils::DateTime m_creationDate{};
141 bool m_creationDateHasBeenSet = false;
142
143 Aws::Utils::DateTime m_lastModifiedDate{};
144 bool m_lastModifiedDateHasBeenSet = false;
145
146 Aws::String m_generationId;
147 bool m_generationIdHasBeenSet = false;
148
149 Aws::String m_requestId;
150 bool m_requestIdHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace IoT
155} // namespace Aws
const Aws::String & GetDefaultVersionId() const
GetPolicyResult & WithCreationDate(CreationDateT &&value)
GetPolicyResult & WithPolicyDocument(PolicyDocumentT &&value)
void SetCreationDate(CreationDateT &&value)
void SetPolicyDocument(PolicyDocumentT &&value)
GetPolicyResult & WithLastModifiedDate(LastModifiedDateT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
void SetRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetPolicyName() const
void SetLastModifiedDate(LastModifiedDateT &&value)
AWS_IOT_API GetPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_IOT_API GetPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPolicyResult & WithPolicyName(PolicyNameT &&value)
GetPolicyResult & WithRequestId(RequestIdT &&value)
void SetDefaultVersionId(DefaultVersionIdT &&value)
void SetPolicyArn(PolicyArnT &&value)
GetPolicyResult & WithDefaultVersionId(DefaultVersionIdT &&value)
GetPolicyResult & WithPolicyArn(PolicyArnT &&value)
void SetGenerationId(GenerationIdT &&value)
const Aws::String & GetPolicyArn() const
void SetPolicyName(PolicyNameT &&value)
const Aws::String & GetPolicyDocument() const
const Aws::Utils::DateTime & GetLastModifiedDate() const
AWS_IOT_API GetPolicyResult()=default
const Aws::String & GetGenerationId() const
GetPolicyResult & WithGenerationId(GenerationIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue