AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
GetPackageResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/IoT_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace IoT {
24namespace Model {
26 public:
27 AWS_IOT_API GetPackageResult() = default;
30
32
35 inline const Aws::String& GetPackageName() const { return m_packageName; }
36 template <typename PackageNameT = Aws::String>
37 void SetPackageName(PackageNameT&& value) {
38 m_packageNameHasBeenSet = true;
39 m_packageName = std::forward<PackageNameT>(value);
40 }
41 template <typename PackageNameT = Aws::String>
42 GetPackageResult& WithPackageName(PackageNameT&& value) {
43 SetPackageName(std::forward<PackageNameT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetPackageArn() const { return m_packageArn; }
53 template <typename PackageArnT = Aws::String>
54 void SetPackageArn(PackageArnT&& value) {
55 m_packageArnHasBeenSet = true;
56 m_packageArn = std::forward<PackageArnT>(value);
57 }
58 template <typename PackageArnT = Aws::String>
59 GetPackageResult& WithPackageArn(PackageArnT&& value) {
60 SetPackageArn(std::forward<PackageArnT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetDescription() const { return m_description; }
70 template <typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) {
72 m_descriptionHasBeenSet = true;
73 m_description = std::forward<DescriptionT>(value);
74 }
75 template <typename DescriptionT = Aws::String>
76 GetPackageResult& WithDescription(DescriptionT&& value) {
77 SetDescription(std::forward<DescriptionT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetDefaultVersionName() const { return m_defaultVersionName; }
87 template <typename DefaultVersionNameT = Aws::String>
88 void SetDefaultVersionName(DefaultVersionNameT&& value) {
89 m_defaultVersionNameHasBeenSet = true;
90 m_defaultVersionName = std::forward<DefaultVersionNameT>(value);
91 }
92 template <typename DefaultVersionNameT = Aws::String>
93 GetPackageResult& WithDefaultVersionName(DefaultVersionNameT&& value) {
94 SetDefaultVersionName(std::forward<DefaultVersionNameT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
104 template <typename CreationDateT = Aws::Utils::DateTime>
105 void SetCreationDate(CreationDateT&& value) {
106 m_creationDateHasBeenSet = true;
107 m_creationDate = std::forward<CreationDateT>(value);
108 }
109 template <typename CreationDateT = Aws::Utils::DateTime>
110 GetPackageResult& WithCreationDate(CreationDateT&& value) {
111 SetCreationDate(std::forward<CreationDateT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
121 template <typename LastModifiedDateT = Aws::Utils::DateTime>
122 void SetLastModifiedDate(LastModifiedDateT&& value) {
123 m_lastModifiedDateHasBeenSet = true;
124 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
125 }
126 template <typename LastModifiedDateT = Aws::Utils::DateTime>
127 GetPackageResult& WithLastModifiedDate(LastModifiedDateT&& value) {
128 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
129 return *this;
130 }
132
134
135 inline const Aws::String& GetRequestId() const { return m_requestId; }
136 template <typename RequestIdT = Aws::String>
137 void SetRequestId(RequestIdT&& value) {
138 m_requestIdHasBeenSet = true;
139 m_requestId = std::forward<RequestIdT>(value);
140 }
141 template <typename RequestIdT = Aws::String>
142 GetPackageResult& WithRequestId(RequestIdT&& value) {
143 SetRequestId(std::forward<RequestIdT>(value));
144 return *this;
145 }
147 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
148
149 private:
150 Aws::String m_packageName;
151
152 Aws::String m_packageArn;
153
154 Aws::String m_description;
155
156 Aws::String m_defaultVersionName;
157
158 Aws::Utils::DateTime m_creationDate{};
159
160 Aws::Utils::DateTime m_lastModifiedDate{};
161
162 Aws::String m_requestId;
163 Aws::Http::HttpResponseCode m_HttpResponseCode;
164 bool m_packageNameHasBeenSet = false;
165 bool m_packageArnHasBeenSet = false;
166 bool m_descriptionHasBeenSet = false;
167 bool m_defaultVersionNameHasBeenSet = false;
168 bool m_creationDateHasBeenSet = false;
169 bool m_lastModifiedDateHasBeenSet = false;
170 bool m_requestIdHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace IoT
175} // namespace Aws
void SetRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetPackageName() const
AWS_IOT_API GetPackageResult()=default
GetPackageResult & WithLastModifiedDate(LastModifiedDateT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_IOT_API GetPackageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetDefaultVersionName() const
const Aws::Utils::DateTime & GetLastModifiedDate() const
const Aws::String & GetDescription() const
const Aws::Utils::DateTime & GetCreationDate() const
void SetPackageName(PackageNameT &&value)
AWS_IOT_API GetPackageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetPackageArn(PackageArnT &&value)
const Aws::String & GetPackageArn() const
GetPackageResult & WithDefaultVersionName(DefaultVersionNameT &&value)
GetPackageResult & WithCreationDate(CreationDateT &&value)
GetPackageResult & WithRequestId(RequestIdT &&value)
void SetDescription(DescriptionT &&value)
void SetCreationDate(CreationDateT &&value)
GetPackageResult & WithDescription(DescriptionT &&value)
void SetLastModifiedDate(LastModifiedDateT &&value)
GetPackageResult & WithPackageName(PackageNameT &&value)
GetPackageResult & WithPackageArn(PackageArnT &&value)
void SetDefaultVersionName(DefaultVersionNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue