AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AccountSettings.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/DevicePlatform.h>
11#include <aws/devicefarm/model/TrialMinutes.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DeviceFarm {
23namespace Model {
24
32 public:
33 AWS_DEVICEFARM_API AccountSettings() = default;
34 AWS_DEVICEFARM_API AccountSettings(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetAwsAccountNumber() const { return m_awsAccountNumber; }
44 inline bool AwsAccountNumberHasBeenSet() const { return m_awsAccountNumberHasBeenSet; }
45 template <typename AwsAccountNumberT = Aws::String>
46 void SetAwsAccountNumber(AwsAccountNumberT&& value) {
47 m_awsAccountNumberHasBeenSet = true;
48 m_awsAccountNumber = std::forward<AwsAccountNumberT>(value);
49 }
50 template <typename AwsAccountNumberT = Aws::String>
51 AccountSettings& WithAwsAccountNumber(AwsAccountNumberT&& value) {
52 SetAwsAccountNumber(std::forward<AwsAccountNumberT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Map<DevicePlatform, int>& GetUnmeteredDevices() const { return m_unmeteredDevices; }
62 inline bool UnmeteredDevicesHasBeenSet() const { return m_unmeteredDevicesHasBeenSet; }
63 template <typename UnmeteredDevicesT = Aws::Map<DevicePlatform, int>>
64 void SetUnmeteredDevices(UnmeteredDevicesT&& value) {
65 m_unmeteredDevicesHasBeenSet = true;
66 m_unmeteredDevices = std::forward<UnmeteredDevicesT>(value);
67 }
68 template <typename UnmeteredDevicesT = Aws::Map<DevicePlatform, int>>
69 AccountSettings& WithUnmeteredDevices(UnmeteredDevicesT&& value) {
70 SetUnmeteredDevices(std::forward<UnmeteredDevicesT>(value));
71 return *this;
72 }
74 m_unmeteredDevicesHasBeenSet = true;
75 m_unmeteredDevices.emplace(key, value);
76 return *this;
77 }
79
81
85 inline const Aws::Map<DevicePlatform, int>& GetUnmeteredRemoteAccessDevices() const { return m_unmeteredRemoteAccessDevices; }
86 inline bool UnmeteredRemoteAccessDevicesHasBeenSet() const { return m_unmeteredRemoteAccessDevicesHasBeenSet; }
87 template <typename UnmeteredRemoteAccessDevicesT = Aws::Map<DevicePlatform, int>>
88 void SetUnmeteredRemoteAccessDevices(UnmeteredRemoteAccessDevicesT&& value) {
89 m_unmeteredRemoteAccessDevicesHasBeenSet = true;
90 m_unmeteredRemoteAccessDevices = std::forward<UnmeteredRemoteAccessDevicesT>(value);
91 }
92 template <typename UnmeteredRemoteAccessDevicesT = Aws::Map<DevicePlatform, int>>
93 AccountSettings& WithUnmeteredRemoteAccessDevices(UnmeteredRemoteAccessDevicesT&& value) {
94 SetUnmeteredRemoteAccessDevices(std::forward<UnmeteredRemoteAccessDevicesT>(value));
95 return *this;
96 }
98 m_unmeteredRemoteAccessDevicesHasBeenSet = true;
99 m_unmeteredRemoteAccessDevices.emplace(key, value);
100 return *this;
101 }
103
105
108 inline int GetMaxJobTimeoutMinutes() const { return m_maxJobTimeoutMinutes; }
109 inline bool MaxJobTimeoutMinutesHasBeenSet() const { return m_maxJobTimeoutMinutesHasBeenSet; }
110 inline void SetMaxJobTimeoutMinutes(int value) {
111 m_maxJobTimeoutMinutesHasBeenSet = true;
112 m_maxJobTimeoutMinutes = value;
113 }
116 return *this;
117 }
119
121
124 inline const TrialMinutes& GetTrialMinutes() const { return m_trialMinutes; }
125 inline bool TrialMinutesHasBeenSet() const { return m_trialMinutesHasBeenSet; }
126 template <typename TrialMinutesT = TrialMinutes>
127 void SetTrialMinutes(TrialMinutesT&& value) {
128 m_trialMinutesHasBeenSet = true;
129 m_trialMinutes = std::forward<TrialMinutesT>(value);
130 }
131 template <typename TrialMinutesT = TrialMinutes>
132 AccountSettings& WithTrialMinutes(TrialMinutesT&& value) {
133 SetTrialMinutes(std::forward<TrialMinutesT>(value));
134 return *this;
135 }
137
139
145 inline const Aws::Map<Aws::String, int>& GetMaxSlots() const { return m_maxSlots; }
146 inline bool MaxSlotsHasBeenSet() const { return m_maxSlotsHasBeenSet; }
147 template <typename MaxSlotsT = Aws::Map<Aws::String, int>>
148 void SetMaxSlots(MaxSlotsT&& value) {
149 m_maxSlotsHasBeenSet = true;
150 m_maxSlots = std::forward<MaxSlotsT>(value);
151 }
152 template <typename MaxSlotsT = Aws::Map<Aws::String, int>>
153 AccountSettings& WithMaxSlots(MaxSlotsT&& value) {
154 SetMaxSlots(std::forward<MaxSlotsT>(value));
155 return *this;
156 }
157 inline AccountSettings& AddMaxSlots(Aws::String key, int value) {
158 m_maxSlotsHasBeenSet = true;
159 m_maxSlots.emplace(key, value);
160 return *this;
161 }
163
165
169 inline int GetDefaultJobTimeoutMinutes() const { return m_defaultJobTimeoutMinutes; }
170 inline bool DefaultJobTimeoutMinutesHasBeenSet() const { return m_defaultJobTimeoutMinutesHasBeenSet; }
171 inline void SetDefaultJobTimeoutMinutes(int value) {
172 m_defaultJobTimeoutMinutesHasBeenSet = true;
173 m_defaultJobTimeoutMinutes = value;
174 }
177 return *this;
178 }
180
182
189 inline bool GetSkipAppResign() const { return m_skipAppResign; }
190 inline bool SkipAppResignHasBeenSet() const { return m_skipAppResignHasBeenSet; }
191 inline void SetSkipAppResign(bool value) {
192 m_skipAppResignHasBeenSet = true;
193 m_skipAppResign = value;
194 }
195 inline AccountSettings& WithSkipAppResign(bool value) {
196 SetSkipAppResign(value);
197 return *this;
198 }
200 private:
201 Aws::String m_awsAccountNumber;
202
203 Aws::Map<DevicePlatform, int> m_unmeteredDevices;
204
205 Aws::Map<DevicePlatform, int> m_unmeteredRemoteAccessDevices;
206
207 int m_maxJobTimeoutMinutes{0};
208
209 TrialMinutes m_trialMinutes;
210
212
213 int m_defaultJobTimeoutMinutes{0};
214
215 bool m_skipAppResign{false};
216 bool m_awsAccountNumberHasBeenSet = false;
217 bool m_unmeteredDevicesHasBeenSet = false;
218 bool m_unmeteredRemoteAccessDevicesHasBeenSet = false;
219 bool m_maxJobTimeoutMinutesHasBeenSet = false;
220 bool m_trialMinutesHasBeenSet = false;
221 bool m_maxSlotsHasBeenSet = false;
222 bool m_defaultJobTimeoutMinutesHasBeenSet = false;
223 bool m_skipAppResignHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace DeviceFarm
228} // namespace Aws
AccountSettings & WithAwsAccountNumber(AwsAccountNumberT &&value)
const Aws::String & GetAwsAccountNumber() const
void SetAwsAccountNumber(AwsAccountNumberT &&value)
const Aws::Map< DevicePlatform, int > & GetUnmeteredDevices() const
AccountSettings & WithSkipAppResign(bool value)
void SetUnmeteredDevices(UnmeteredDevicesT &&value)
AccountSettings & AddUnmeteredDevices(DevicePlatform key, int value)
AccountSettings & WithMaxJobTimeoutMinutes(int value)
AWS_DEVICEFARM_API AccountSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountSettings & WithTrialMinutes(TrialMinutesT &&value)
void SetUnmeteredRemoteAccessDevices(UnmeteredRemoteAccessDevicesT &&value)
AWS_DEVICEFARM_API AccountSettings(Aws::Utils::Json::JsonView jsonValue)
AccountSettings & WithMaxSlots(MaxSlotsT &&value)
AccountSettings & AddMaxSlots(Aws::String key, int value)
const Aws::Map< DevicePlatform, int > & GetUnmeteredRemoteAccessDevices() const
AWS_DEVICEFARM_API AccountSettings()=default
const Aws::Map< Aws::String, int > & GetMaxSlots() const
const TrialMinutes & GetTrialMinutes() const
AccountSettings & WithDefaultJobTimeoutMinutes(int value)
void SetTrialMinutes(TrialMinutesT &&value)
AccountSettings & WithUnmeteredRemoteAccessDevices(UnmeteredRemoteAccessDevicesT &&value)
AccountSettings & WithUnmeteredDevices(UnmeteredDevicesT &&value)
AccountSettings & AddUnmeteredRemoteAccessDevices(DevicePlatform key, int value)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
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