AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
39
40
42
45 inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
46 inline void SetPolicyArn(const Aws::String& value) { m_policyArn = value; }
47 inline void SetPolicyArn(Aws::String&& value) { m_policyArn = std::move(value); }
48 inline void SetPolicyArn(const char* value) { m_policyArn.assign(value); }
49 inline CreatePolicyVersionResult& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
50 inline CreatePolicyVersionResult& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
51 inline CreatePolicyVersionResult& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
53
55
58 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
59 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocument = value; }
60 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocument = std::move(value); }
61 inline void SetPolicyDocument(const char* value) { m_policyDocument.assign(value); }
62 inline CreatePolicyVersionResult& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
63 inline CreatePolicyVersionResult& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
64 inline CreatePolicyVersionResult& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
66
68
71 inline const Aws::String& GetPolicyVersionId() const{ return m_policyVersionId; }
72 inline void SetPolicyVersionId(const Aws::String& value) { m_policyVersionId = value; }
73 inline void SetPolicyVersionId(Aws::String&& value) { m_policyVersionId = std::move(value); }
74 inline void SetPolicyVersionId(const char* value) { m_policyVersionId.assign(value); }
75 inline CreatePolicyVersionResult& WithPolicyVersionId(const Aws::String& value) { SetPolicyVersionId(value); return *this;}
76 inline CreatePolicyVersionResult& WithPolicyVersionId(Aws::String&& value) { SetPolicyVersionId(std::move(value)); return *this;}
77 inline CreatePolicyVersionResult& WithPolicyVersionId(const char* value) { SetPolicyVersionId(value); return *this;}
79
81
84 inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; }
85 inline void SetIsDefaultVersion(bool value) { m_isDefaultVersion = value; }
86 inline CreatePolicyVersionResult& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;}
88
90
91 inline const Aws::String& GetRequestId() const{ return m_requestId; }
92 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
93 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
94 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
95 inline CreatePolicyVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
96 inline CreatePolicyVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
97 inline CreatePolicyVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
99 private:
100
101 Aws::String m_policyArn;
102
103 Aws::String m_policyDocument;
104
105 Aws::String m_policyVersionId;
106
107 bool m_isDefaultVersion;
108
109 Aws::String m_requestId;
110 };
111
112} // namespace Model
113} // namespace IoT
114} // namespace Aws
CreatePolicyVersionResult & WithPolicyDocument(Aws::String &&value)
CreatePolicyVersionResult & WithPolicyVersionId(Aws::String &&value)
CreatePolicyVersionResult & WithIsDefaultVersion(bool value)
CreatePolicyVersionResult & WithRequestId(Aws::String &&value)
CreatePolicyVersionResult & WithPolicyArn(const char *value)
AWS_IOT_API CreatePolicyVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePolicyVersionResult & WithPolicyDocument(const Aws::String &value)
CreatePolicyVersionResult & WithPolicyVersionId(const char *value)
CreatePolicyVersionResult & WithRequestId(const char *value)
CreatePolicyVersionResult & WithPolicyDocument(const char *value)
AWS_IOT_API CreatePolicyVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePolicyVersionResult & WithRequestId(const Aws::String &value)
CreatePolicyVersionResult & WithPolicyArn(const Aws::String &value)
CreatePolicyVersionResult & WithPolicyArn(Aws::String &&value)
CreatePolicyVersionResult & WithPolicyVersionId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue