AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePackageVersionResult.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/memory/stl/AWSMap.h>
10#include <aws/iot/model/PackageVersionStatus.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace IoT
26{
27namespace Model
28{
30 {
31 public:
35
36
38
41 inline const Aws::String& GetPackageVersionArn() const{ return m_packageVersionArn; }
42 inline void SetPackageVersionArn(const Aws::String& value) { m_packageVersionArn = value; }
43 inline void SetPackageVersionArn(Aws::String&& value) { m_packageVersionArn = std::move(value); }
44 inline void SetPackageVersionArn(const char* value) { m_packageVersionArn.assign(value); }
46 inline CreatePackageVersionResult& WithPackageVersionArn(Aws::String&& value) { SetPackageVersionArn(std::move(value)); return *this;}
47 inline CreatePackageVersionResult& WithPackageVersionArn(const char* value) { SetPackageVersionArn(value); return *this;}
49
51
54 inline const Aws::String& GetPackageName() const{ return m_packageName; }
55 inline void SetPackageName(const Aws::String& value) { m_packageName = value; }
56 inline void SetPackageName(Aws::String&& value) { m_packageName = std::move(value); }
57 inline void SetPackageName(const char* value) { m_packageName.assign(value); }
58 inline CreatePackageVersionResult& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;}
59 inline CreatePackageVersionResult& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;}
60 inline CreatePackageVersionResult& WithPackageName(const char* value) { SetPackageName(value); return *this;}
62
64
67 inline const Aws::String& GetVersionName() const{ return m_versionName; }
68 inline void SetVersionName(const Aws::String& value) { m_versionName = value; }
69 inline void SetVersionName(Aws::String&& value) { m_versionName = std::move(value); }
70 inline void SetVersionName(const char* value) { m_versionName.assign(value); }
71 inline CreatePackageVersionResult& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
72 inline CreatePackageVersionResult& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
73 inline CreatePackageVersionResult& WithVersionName(const char* value) { SetVersionName(value); return *this;}
75
77
80 inline const Aws::String& GetDescription() const{ return m_description; }
81 inline void SetDescription(const Aws::String& value) { m_description = value; }
82 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
83 inline void SetDescription(const char* value) { m_description.assign(value); }
84 inline CreatePackageVersionResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
85 inline CreatePackageVersionResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
86 inline CreatePackageVersionResult& WithDescription(const char* value) { SetDescription(value); return *this;}
88
90
94 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
95 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributes = value; }
96 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributes = std::move(value); }
99 inline CreatePackageVersionResult& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributes.emplace(key, value); return *this; }
100 inline CreatePackageVersionResult& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributes.emplace(std::move(key), value); return *this; }
101 inline CreatePackageVersionResult& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributes.emplace(key, std::move(value)); return *this; }
102 inline CreatePackageVersionResult& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributes.emplace(std::move(key), std::move(value)); return *this; }
103 inline CreatePackageVersionResult& AddAttributes(const char* key, Aws::String&& value) { m_attributes.emplace(key, std::move(value)); return *this; }
104 inline CreatePackageVersionResult& AddAttributes(Aws::String&& key, const char* value) { m_attributes.emplace(std::move(key), value); return *this; }
105 inline CreatePackageVersionResult& AddAttributes(const char* key, const char* value) { m_attributes.emplace(key, value); return *this; }
107
109
114 inline const PackageVersionStatus& GetStatus() const{ return m_status; }
115 inline void SetStatus(const PackageVersionStatus& value) { m_status = value; }
116 inline void SetStatus(PackageVersionStatus&& value) { m_status = std::move(value); }
117 inline CreatePackageVersionResult& WithStatus(const PackageVersionStatus& value) { SetStatus(value); return *this;}
118 inline CreatePackageVersionResult& WithStatus(PackageVersionStatus&& value) { SetStatus(std::move(value)); return *this;}
120
122
125 inline const Aws::String& GetErrorReason() const{ return m_errorReason; }
126 inline void SetErrorReason(const Aws::String& value) { m_errorReason = value; }
127 inline void SetErrorReason(Aws::String&& value) { m_errorReason = std::move(value); }
128 inline void SetErrorReason(const char* value) { m_errorReason.assign(value); }
129 inline CreatePackageVersionResult& WithErrorReason(const Aws::String& value) { SetErrorReason(value); return *this;}
130 inline CreatePackageVersionResult& WithErrorReason(Aws::String&& value) { SetErrorReason(std::move(value)); return *this;}
131 inline CreatePackageVersionResult& WithErrorReason(const char* value) { SetErrorReason(value); return *this;}
133
135
136 inline const Aws::String& GetRequestId() const{ return m_requestId; }
137 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
138 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
139 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
140 inline CreatePackageVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
141 inline CreatePackageVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
142 inline CreatePackageVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
144 private:
145
146 Aws::String m_packageVersionArn;
147
148 Aws::String m_packageName;
149
150 Aws::String m_versionName;
151
152 Aws::String m_description;
153
155
156 PackageVersionStatus m_status;
157
158 Aws::String m_errorReason;
159
160 Aws::String m_requestId;
161 };
162
163} // namespace Model
164} // namespace IoT
165} // namespace Aws
CreatePackageVersionResult & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
CreatePackageVersionResult & WithPackageVersionArn(Aws::String &&value)
CreatePackageVersionResult & WithVersionName(const Aws::String &value)
CreatePackageVersionResult & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
CreatePackageVersionResult & AddAttributes(const char *key, Aws::String &&value)
CreatePackageVersionResult & WithPackageName(const Aws::String &value)
CreatePackageVersionResult & AddAttributes(const char *key, const char *value)
CreatePackageVersionResult & WithStatus(PackageVersionStatus &&value)
CreatePackageVersionResult & WithPackageVersionArn(const Aws::String &value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
AWS_IOT_API CreatePackageVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePackageVersionResult & WithErrorReason(const Aws::String &value)
CreatePackageVersionResult & WithRequestId(const Aws::String &value)
CreatePackageVersionResult & WithVersionName(const char *value)
CreatePackageVersionResult & WithDescription(const Aws::String &value)
CreatePackageVersionResult & WithPackageName(const char *value)
CreatePackageVersionResult & AddAttributes(Aws::String &&key, Aws::String &&value)
CreatePackageVersionResult & AddAttributes(const Aws::String &key, const Aws::String &value)
CreatePackageVersionResult & WithStatus(const PackageVersionStatus &value)
CreatePackageVersionResult & AddAttributes(const Aws::String &key, Aws::String &&value)
CreatePackageVersionResult & WithPackageName(Aws::String &&value)
AWS_IOT_API CreatePackageVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
CreatePackageVersionResult & AddAttributes(Aws::String &&key, const Aws::String &value)
CreatePackageVersionResult & WithVersionName(Aws::String &&value)
void SetStatus(const PackageVersionStatus &value)
CreatePackageVersionResult & WithErrorReason(const char *value)
CreatePackageVersionResult & WithRequestId(const char *value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
CreatePackageVersionResult & AddAttributes(Aws::String &&key, const char *value)
CreatePackageVersionResult & WithDescription(Aws::String &&value)
CreatePackageVersionResult & WithRequestId(Aws::String &&value)
CreatePackageVersionResult & WithErrorReason(Aws::String &&value)
CreatePackageVersionResult & WithPackageVersionArn(const char *value)
CreatePackageVersionResult & WithDescription(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue