AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetVersionsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/evs/EVS_EXPORTS.h>
11#include <aws/evs/model/InstanceTypeEsxVersionsInfo.h>
12#include <aws/evs/model/VcfVersionInfo.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace EVS {
26namespace Model {
28 public:
29 AWS_EVS_API GetVersionsResult() = default;
32
34
38 inline const Aws::Vector<VcfVersionInfo>& GetVcfVersions() const { return m_vcfVersions; }
39 template <typename VcfVersionsT = Aws::Vector<VcfVersionInfo>>
40 void SetVcfVersions(VcfVersionsT&& value) {
41 m_vcfVersionsHasBeenSet = true;
42 m_vcfVersions = std::forward<VcfVersionsT>(value);
43 }
44 template <typename VcfVersionsT = Aws::Vector<VcfVersionInfo>>
45 GetVersionsResult& WithVcfVersions(VcfVersionsT&& value) {
46 SetVcfVersions(std::forward<VcfVersionsT>(value));
47 return *this;
48 }
49 template <typename VcfVersionsT = VcfVersionInfo>
50 GetVersionsResult& AddVcfVersions(VcfVersionsT&& value) {
51 m_vcfVersionsHasBeenSet = true;
52 m_vcfVersions.emplace_back(std::forward<VcfVersionsT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<InstanceTypeEsxVersionsInfo>& GetInstanceTypeEsxVersions() const { return m_instanceTypeEsxVersions; }
62 template <typename InstanceTypeEsxVersionsT = Aws::Vector<InstanceTypeEsxVersionsInfo>>
63 void SetInstanceTypeEsxVersions(InstanceTypeEsxVersionsT&& value) {
64 m_instanceTypeEsxVersionsHasBeenSet = true;
65 m_instanceTypeEsxVersions = std::forward<InstanceTypeEsxVersionsT>(value);
66 }
67 template <typename InstanceTypeEsxVersionsT = Aws::Vector<InstanceTypeEsxVersionsInfo>>
68 GetVersionsResult& WithInstanceTypeEsxVersions(InstanceTypeEsxVersionsT&& value) {
69 SetInstanceTypeEsxVersions(std::forward<InstanceTypeEsxVersionsT>(value));
70 return *this;
71 }
72 template <typename InstanceTypeEsxVersionsT = InstanceTypeEsxVersionsInfo>
73 GetVersionsResult& AddInstanceTypeEsxVersions(InstanceTypeEsxVersionsT&& value) {
74 m_instanceTypeEsxVersionsHasBeenSet = true;
75 m_instanceTypeEsxVersions.emplace_back(std::forward<InstanceTypeEsxVersionsT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
89 GetVersionsResult& WithRequestId(RequestIdT&& value) {
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
95
96 private:
97 Aws::Vector<VcfVersionInfo> m_vcfVersions;
98
99 Aws::Vector<InstanceTypeEsxVersionsInfo> m_instanceTypeEsxVersions;
100
101 Aws::String m_requestId;
102 Aws::Http::HttpResponseCode m_HttpResponseCode;
103 bool m_vcfVersionsHasBeenSet = false;
104 bool m_instanceTypeEsxVersionsHasBeenSet = false;
105 bool m_requestIdHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace EVS
110} // namespace Aws
const Aws::Vector< VcfVersionInfo > & GetVcfVersions() const
GetVersionsResult & WithVcfVersions(VcfVersionsT &&value)
void SetInstanceTypeEsxVersions(InstanceTypeEsxVersionsT &&value)
const Aws::Vector< InstanceTypeEsxVersionsInfo > & GetInstanceTypeEsxVersions() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetVersionsResult & AddVcfVersions(VcfVersionsT &&value)
const Aws::String & GetRequestId() const
AWS_EVS_API GetVersionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetVersionsResult & WithInstanceTypeEsxVersions(InstanceTypeEsxVersionsT &&value)
AWS_EVS_API GetVersionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetVcfVersions(VcfVersionsT &&value)
AWS_EVS_API GetVersionsResult()=default
GetVersionsResult & AddInstanceTypeEsxVersions(InstanceTypeEsxVersionsT &&value)
void SetRequestId(RequestIdT &&value)
GetVersionsResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue