AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
GetOfferingStatusResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
10#include <aws/devicefarm/model/OfferingStatus.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 DeviceFarm {
24namespace Model {
32 public:
33 AWS_DEVICEFARM_API GetOfferingStatusResult() = default;
36
38
41 inline const Aws::Map<Aws::String, OfferingStatus>& GetCurrent() const { return m_current; }
42 template <typename CurrentT = Aws::Map<Aws::String, OfferingStatus>>
43 void SetCurrent(CurrentT&& value) {
44 m_currentHasBeenSet = true;
45 m_current = std::forward<CurrentT>(value);
46 }
47 template <typename CurrentT = Aws::Map<Aws::String, OfferingStatus>>
49 SetCurrent(std::forward<CurrentT>(value));
50 return *this;
51 }
52 template <typename CurrentKeyT = Aws::String, typename CurrentValueT = OfferingStatus>
53 GetOfferingStatusResult& AddCurrent(CurrentKeyT&& key, CurrentValueT&& value) {
54 m_currentHasBeenSet = true;
55 m_current.emplace(std::forward<CurrentKeyT>(key), std::forward<CurrentValueT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Map<Aws::String, OfferingStatus>& GetNextPeriod() const { return m_nextPeriod; }
65 template <typename NextPeriodT = Aws::Map<Aws::String, OfferingStatus>>
66 void SetNextPeriod(NextPeriodT&& value) {
67 m_nextPeriodHasBeenSet = true;
68 m_nextPeriod = std::forward<NextPeriodT>(value);
69 }
70 template <typename NextPeriodT = Aws::Map<Aws::String, OfferingStatus>>
72 SetNextPeriod(std::forward<NextPeriodT>(value));
73 return *this;
74 }
75 template <typename NextPeriodKeyT = Aws::String, typename NextPeriodValueT = OfferingStatus>
76 GetOfferingStatusResult& AddNextPeriod(NextPeriodKeyT&& key, NextPeriodValueT&& value) {
77 m_nextPeriodHasBeenSet = true;
78 m_nextPeriod.emplace(std::forward<NextPeriodKeyT>(key), std::forward<NextPeriodValueT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetNextToken() const { return m_nextToken; }
89 template <typename NextTokenT = Aws::String>
90 void SetNextToken(NextTokenT&& value) {
91 m_nextTokenHasBeenSet = true;
92 m_nextToken = std::forward<NextTokenT>(value);
93 }
94 template <typename NextTokenT = Aws::String>
96 SetNextToken(std::forward<NextTokenT>(value));
97 return *this;
98 }
100
102
103 inline const Aws::String& GetRequestId() const { return m_requestId; }
104 template <typename RequestIdT = Aws::String>
105 void SetRequestId(RequestIdT&& value) {
106 m_requestIdHasBeenSet = true;
107 m_requestId = std::forward<RequestIdT>(value);
108 }
109 template <typename RequestIdT = Aws::String>
111 SetRequestId(std::forward<RequestIdT>(value));
112 return *this;
113 }
115 private:
117
119
120 Aws::String m_nextToken;
121
122 Aws::String m_requestId;
123 bool m_currentHasBeenSet = false;
124 bool m_nextPeriodHasBeenSet = false;
125 bool m_nextTokenHasBeenSet = false;
126 bool m_requestIdHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace DeviceFarm
131} // 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_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