AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetOfferingStatusResult.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/devicefarm/model/OfferingStatus.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace DeviceFarm
26{
27namespace Model
28{
36 {
37 public:
38 AWS_DEVICEFARM_API GetOfferingStatusResult() = default;
41
42
44
47 inline const Aws::Map<Aws::String, OfferingStatus>& GetCurrent() const { return m_current; }
48 template<typename CurrentT = Aws::Map<Aws::String, OfferingStatus>>
49 void SetCurrent(CurrentT&& value) { m_currentHasBeenSet = true; m_current = std::forward<CurrentT>(value); }
50 template<typename CurrentT = Aws::Map<Aws::String, OfferingStatus>>
51 GetOfferingStatusResult& WithCurrent(CurrentT&& value) { SetCurrent(std::forward<CurrentT>(value)); return *this;}
52 template<typename CurrentKeyT = Aws::String, typename CurrentValueT = OfferingStatus>
53 GetOfferingStatusResult& AddCurrent(CurrentKeyT&& key, CurrentValueT&& value) {
54 m_currentHasBeenSet = true; m_current.emplace(std::forward<CurrentKeyT>(key), std::forward<CurrentValueT>(value)); return *this;
55 }
57
59
62 inline const Aws::Map<Aws::String, OfferingStatus>& GetNextPeriod() const { return m_nextPeriod; }
63 template<typename NextPeriodT = Aws::Map<Aws::String, OfferingStatus>>
64 void SetNextPeriod(NextPeriodT&& value) { m_nextPeriodHasBeenSet = true; m_nextPeriod = std::forward<NextPeriodT>(value); }
65 template<typename NextPeriodT = Aws::Map<Aws::String, OfferingStatus>>
66 GetOfferingStatusResult& WithNextPeriod(NextPeriodT&& value) { SetNextPeriod(std::forward<NextPeriodT>(value)); return *this;}
67 template<typename NextPeriodKeyT = Aws::String, typename NextPeriodValueT = OfferingStatus>
68 GetOfferingStatusResult& AddNextPeriod(NextPeriodKeyT&& key, NextPeriodValueT&& value) {
69 m_nextPeriodHasBeenSet = true; m_nextPeriod.emplace(std::forward<NextPeriodKeyT>(key), std::forward<NextPeriodValueT>(value)); return *this;
70 }
72
74
78 inline const Aws::String& GetNextToken() const { return m_nextToken; }
79 template<typename NextTokenT = Aws::String>
80 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
81 template<typename NextTokenT = Aws::String>
82 GetOfferingStatusResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
84
86
87 inline const Aws::String& GetRequestId() const { return m_requestId; }
88 template<typename RequestIdT = Aws::String>
89 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
90 template<typename RequestIdT = Aws::String>
91 GetOfferingStatusResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
93 private:
94
96 bool m_currentHasBeenSet = false;
97
99 bool m_nextPeriodHasBeenSet = false;
100
101 Aws::String m_nextToken;
102 bool m_nextTokenHasBeenSet = false;
103
104 Aws::String m_requestId;
105 bool m_requestIdHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace DeviceFarm
110} // 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