AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreatePolicyVersionResult.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{
34 {
35 public:
36 AWS_IOT_API CreatePolicyVersionResult() = default;
39
40
42
45 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
46 template<typename PolicyArnT = Aws::String>
47 void SetPolicyArn(PolicyArnT&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::forward<PolicyArnT>(value); }
48 template<typename PolicyArnT = Aws::String>
49 CreatePolicyVersionResult& WithPolicyArn(PolicyArnT&& value) { SetPolicyArn(std::forward<PolicyArnT>(value)); return *this;}
51
53
56 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
57 template<typename PolicyDocumentT = Aws::String>
58 void SetPolicyDocument(PolicyDocumentT&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::forward<PolicyDocumentT>(value); }
59 template<typename PolicyDocumentT = Aws::String>
60 CreatePolicyVersionResult& WithPolicyDocument(PolicyDocumentT&& value) { SetPolicyDocument(std::forward<PolicyDocumentT>(value)); return *this;}
62
64
67 inline const Aws::String& GetPolicyVersionId() const { return m_policyVersionId; }
68 template<typename PolicyVersionIdT = Aws::String>
69 void SetPolicyVersionId(PolicyVersionIdT&& value) { m_policyVersionIdHasBeenSet = true; m_policyVersionId = std::forward<PolicyVersionIdT>(value); }
70 template<typename PolicyVersionIdT = Aws::String>
71 CreatePolicyVersionResult& WithPolicyVersionId(PolicyVersionIdT&& value) { SetPolicyVersionId(std::forward<PolicyVersionIdT>(value)); return *this;}
73
75
78 inline bool GetIsDefaultVersion() const { return m_isDefaultVersion; }
79 inline void SetIsDefaultVersion(bool value) { m_isDefaultVersionHasBeenSet = true; m_isDefaultVersion = value; }
80 inline CreatePolicyVersionResult& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;}
82
84
85 inline const Aws::String& GetRequestId() const { return m_requestId; }
86 template<typename RequestIdT = Aws::String>
87 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
88 template<typename RequestIdT = Aws::String>
89 CreatePolicyVersionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
91 private:
92
93 Aws::String m_policyArn;
94 bool m_policyArnHasBeenSet = false;
95
96 Aws::String m_policyDocument;
97 bool m_policyDocumentHasBeenSet = false;
98
99 Aws::String m_policyVersionId;
100 bool m_policyVersionIdHasBeenSet = false;
101
102 bool m_isDefaultVersion{false};
103 bool m_isDefaultVersionHasBeenSet = false;
104
105 Aws::String m_requestId;
106 bool m_requestIdHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace IoT
111} // namespace Aws
CreatePolicyVersionResult & WithPolicyArn(PolicyArnT &&value)
CreatePolicyVersionResult & WithIsDefaultVersion(bool value)
AWS_IOT_API CreatePolicyVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_IOT_API CreatePolicyVersionResult()=default
CreatePolicyVersionResult & WithPolicyVersionId(PolicyVersionIdT &&value)
CreatePolicyVersionResult & WithRequestId(RequestIdT &&value)
CreatePolicyVersionResult & WithPolicyDocument(PolicyDocumentT &&value)
AWS_IOT_API CreatePolicyVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue