AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetOfferingStatusResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
11#include <aws/devicefarm/model/OfferingStatus.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 DeviceFarm {
25namespace Model {
33 public:
34 AWS_DEVICEFARM_API GetOfferingStatusResult() = default;
37
39
42 inline const Aws::Map<Aws::String, OfferingStatus>& GetCurrent() const { return m_current; }
43 template <typename CurrentT = Aws::Map<Aws::String, OfferingStatus>>
44 void SetCurrent(CurrentT&& value) {
45 m_currentHasBeenSet = true;
46 m_current = std::forward<CurrentT>(value);
47 }
48 template <typename CurrentT = Aws::Map<Aws::String, OfferingStatus>>
50 SetCurrent(std::forward<CurrentT>(value));
51 return *this;
52 }
53 template <typename CurrentKeyT = Aws::String, typename CurrentValueT = OfferingStatus>
54 GetOfferingStatusResult& AddCurrent(CurrentKeyT&& key, CurrentValueT&& value) {
55 m_currentHasBeenSet = true;
56 m_current.emplace(std::forward<CurrentKeyT>(key), std::forward<CurrentValueT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Map<Aws::String, OfferingStatus>& GetNextPeriod() const { return m_nextPeriod; }
66 template <typename NextPeriodT = Aws::Map<Aws::String, OfferingStatus>>
67 void SetNextPeriod(NextPeriodT&& value) {
68 m_nextPeriodHasBeenSet = true;
69 m_nextPeriod = std::forward<NextPeriodT>(value);
70 }
71 template <typename NextPeriodT = Aws::Map<Aws::String, OfferingStatus>>
73 SetNextPeriod(std::forward<NextPeriodT>(value));
74 return *this;
75 }
76 template <typename NextPeriodKeyT = Aws::String, typename NextPeriodValueT = OfferingStatus>
77 GetOfferingStatusResult& AddNextPeriod(NextPeriodKeyT&& key, NextPeriodValueT&& value) {
78 m_nextPeriodHasBeenSet = true;
79 m_nextPeriod.emplace(std::forward<NextPeriodKeyT>(key), std::forward<NextPeriodValueT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetNextToken() const { return m_nextToken; }
90 template <typename NextTokenT = Aws::String>
91 void SetNextToken(NextTokenT&& value) {
92 m_nextTokenHasBeenSet = true;
93 m_nextToken = std::forward<NextTokenT>(value);
94 }
95 template <typename NextTokenT = Aws::String>
97 SetNextToken(std::forward<NextTokenT>(value));
98 return *this;
99 }
101
103
104 inline const Aws::String& GetRequestId() const { return m_requestId; }
105 template <typename RequestIdT = Aws::String>
106 void SetRequestId(RequestIdT&& value) {
107 m_requestIdHasBeenSet = true;
108 m_requestId = std::forward<RequestIdT>(value);
109 }
110 template <typename RequestIdT = Aws::String>
112 SetRequestId(std::forward<RequestIdT>(value));
113 return *this;
114 }
116 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
117
118 private:
120
122
123 Aws::String m_nextToken;
124
125 Aws::String m_requestId;
126 Aws::Http::HttpResponseCode m_HttpResponseCode;
127 bool m_currentHasBeenSet = false;
128 bool m_nextPeriodHasBeenSet = false;
129 bool m_nextTokenHasBeenSet = false;
130 bool m_requestIdHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace DeviceFarm
135} // namespace Aws
AWS_DEVICEFARM_API GetOfferingStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetOfferingStatusResult & WithNextToken(NextTokenT &&value)
const Aws::Map< Aws::String, OfferingStatus > & GetCurrent() const
GetOfferingStatusResult & WithRequestId(RequestIdT &&value)
GetOfferingStatusResult & AddCurrent(CurrentKeyT &&key, CurrentValueT &&value)
AWS_DEVICEFARM_API GetOfferingStatusResult()=default
GetOfferingStatusResult & WithCurrent(CurrentT &&value)
const Aws::Map< Aws::String, OfferingStatus > & GetNextPeriod() const
GetOfferingStatusResult & WithNextPeriod(NextPeriodT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_DEVICEFARM_API GetOfferingStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetOfferingStatusResult & AddNextPeriod(NextPeriodKeyT &&key, NextPeriodValueT &&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