AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeSoftwareAssociationsResult.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/SoftwareAssociations.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace AppStream {
25namespace Model {
27 public:
28 AWS_APPSTREAM_API DescribeSoftwareAssociationsResult() = default;
31
33
36 inline const Aws::String& GetAssociatedResource() const { return m_associatedResource; }
37 template <typename AssociatedResourceT = Aws::String>
38 void SetAssociatedResource(AssociatedResourceT&& value) {
39 m_associatedResourceHasBeenSet = true;
40 m_associatedResource = std::forward<AssociatedResourceT>(value);
41 }
42 template <typename AssociatedResourceT = Aws::String>
44 SetAssociatedResource(std::forward<AssociatedResourceT>(value));
45 return *this;
46 }
48
50
57 inline const Aws::Vector<SoftwareAssociations>& GetSoftwareAssociations() const { return m_softwareAssociations; }
58 template <typename SoftwareAssociationsT = Aws::Vector<SoftwareAssociations>>
59 void SetSoftwareAssociations(SoftwareAssociationsT&& value) {
60 m_softwareAssociationsHasBeenSet = true;
61 m_softwareAssociations = std::forward<SoftwareAssociationsT>(value);
62 }
63 template <typename SoftwareAssociationsT = Aws::Vector<SoftwareAssociations>>
65 SetSoftwareAssociations(std::forward<SoftwareAssociationsT>(value));
66 return *this;
67 }
68 template <typename SoftwareAssociationsT = SoftwareAssociations>
70 m_softwareAssociationsHasBeenSet = true;
71 m_softwareAssociations.emplace_back(std::forward<SoftwareAssociationsT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetNextToken() const { return m_nextToken; }
82 template <typename NextTokenT = Aws::String>
83 void SetNextToken(NextTokenT&& value) {
84 m_nextTokenHasBeenSet = true;
85 m_nextToken = std::forward<NextTokenT>(value);
86 }
87 template <typename NextTokenT = Aws::String>
89 SetNextToken(std::forward<NextTokenT>(value));
90 return *this;
91 }
93
95
96 inline const Aws::String& GetRequestId() const { return m_requestId; }
97 template <typename RequestIdT = Aws::String>
98 void SetRequestId(RequestIdT&& value) {
99 m_requestIdHasBeenSet = true;
100 m_requestId = std::forward<RequestIdT>(value);
101 }
102 template <typename RequestIdT = Aws::String>
104 SetRequestId(std::forward<RequestIdT>(value));
105 return *this;
106 }
108 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
109
110 private:
111 Aws::String m_associatedResource;
112
113 Aws::Vector<SoftwareAssociations> m_softwareAssociations;
114
115 Aws::String m_nextToken;
116
117 Aws::String m_requestId;
118 Aws::Http::HttpResponseCode m_HttpResponseCode;
119 bool m_associatedResourceHasBeenSet = false;
120 bool m_softwareAssociationsHasBeenSet = false;
121 bool m_nextTokenHasBeenSet = false;
122 bool m_requestIdHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace AppStream
127} // namespace Aws
AWS_APPSTREAM_API DescribeSoftwareAssociationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeSoftwareAssociationsResult & WithSoftwareAssociations(SoftwareAssociationsT &&value)
DescribeSoftwareAssociationsResult & WithNextToken(NextTokenT &&value)
AWS_APPSTREAM_API DescribeSoftwareAssociationsResult()=default
AWS_APPSTREAM_API DescribeSoftwareAssociationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< SoftwareAssociations > & GetSoftwareAssociations() const
DescribeSoftwareAssociationsResult & WithRequestId(RequestIdT &&value)
DescribeSoftwareAssociationsResult & WithAssociatedResource(AssociatedResourceT &&value)
DescribeSoftwareAssociationsResult & AddSoftwareAssociations(SoftwareAssociationsT &&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