AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AccountSettings.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/devicefarm/model/TrialMinutes.h>
11#include <aws/devicefarm/model/DevicePlatform.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DeviceFarm
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_DEVICEFARM_API AccountSettings() = default;
39 AWS_DEVICEFARM_API AccountSettings(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetAwsAccountNumber() const { return m_awsAccountNumber; }
50 inline bool AwsAccountNumberHasBeenSet() const { return m_awsAccountNumberHasBeenSet; }
51 template<typename AwsAccountNumberT = Aws::String>
52 void SetAwsAccountNumber(AwsAccountNumberT&& value) { m_awsAccountNumberHasBeenSet = true; m_awsAccountNumber = std::forward<AwsAccountNumberT>(value); }
53 template<typename AwsAccountNumberT = Aws::String>
54 AccountSettings& WithAwsAccountNumber(AwsAccountNumberT&& value) { SetAwsAccountNumber(std::forward<AwsAccountNumberT>(value)); return *this;}
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) { m_unmeteredDevicesHasBeenSet = true; m_unmeteredDevices = std::forward<UnmeteredDevicesT>(value); }
65 template<typename UnmeteredDevicesT = Aws::Map<DevicePlatform, int>>
66 AccountSettings& WithUnmeteredDevices(UnmeteredDevicesT&& value) { SetUnmeteredDevices(std::forward<UnmeteredDevicesT>(value)); return *this;}
68 m_unmeteredDevicesHasBeenSet = true; m_unmeteredDevices.emplace(key, value); return *this;
69 }
71
73
77 inline const Aws::Map<DevicePlatform, int>& GetUnmeteredRemoteAccessDevices() const { return m_unmeteredRemoteAccessDevices; }
78 inline bool UnmeteredRemoteAccessDevicesHasBeenSet() const { return m_unmeteredRemoteAccessDevicesHasBeenSet; }
79 template<typename UnmeteredRemoteAccessDevicesT = Aws::Map<DevicePlatform, int>>
80 void SetUnmeteredRemoteAccessDevices(UnmeteredRemoteAccessDevicesT&& value) { m_unmeteredRemoteAccessDevicesHasBeenSet = true; m_unmeteredRemoteAccessDevices = std::forward<UnmeteredRemoteAccessDevicesT>(value); }
81 template<typename UnmeteredRemoteAccessDevicesT = Aws::Map<DevicePlatform, int>>
82 AccountSettings& WithUnmeteredRemoteAccessDevices(UnmeteredRemoteAccessDevicesT&& value) { SetUnmeteredRemoteAccessDevices(std::forward<UnmeteredRemoteAccessDevicesT>(value)); return *this;}
84 m_unmeteredRemoteAccessDevicesHasBeenSet = true; m_unmeteredRemoteAccessDevices.emplace(key, value); return *this;
85 }
87
89
92 inline int GetMaxJobTimeoutMinutes() const { return m_maxJobTimeoutMinutes; }
93 inline bool MaxJobTimeoutMinutesHasBeenSet() const { return m_maxJobTimeoutMinutesHasBeenSet; }
94 inline void SetMaxJobTimeoutMinutes(int value) { m_maxJobTimeoutMinutesHasBeenSet = true; m_maxJobTimeoutMinutes = value; }
95 inline AccountSettings& WithMaxJobTimeoutMinutes(int value) { SetMaxJobTimeoutMinutes(value); return *this;}
97
99
102 inline const TrialMinutes& GetTrialMinutes() const { return m_trialMinutes; }
103 inline bool TrialMinutesHasBeenSet() const { return m_trialMinutesHasBeenSet; }
104 template<typename TrialMinutesT = TrialMinutes>
105 void SetTrialMinutes(TrialMinutesT&& value) { m_trialMinutesHasBeenSet = true; m_trialMinutes = std::forward<TrialMinutesT>(value); }
106 template<typename TrialMinutesT = TrialMinutes>
107 AccountSettings& WithTrialMinutes(TrialMinutesT&& value) { SetTrialMinutes(std::forward<TrialMinutesT>(value)); return *this;}
109
111
117 inline const Aws::Map<Aws::String, int>& GetMaxSlots() const { return m_maxSlots; }
118 inline bool MaxSlotsHasBeenSet() const { return m_maxSlotsHasBeenSet; }
119 template<typename MaxSlotsT = Aws::Map<Aws::String, int>>
120 void SetMaxSlots(MaxSlotsT&& value) { m_maxSlotsHasBeenSet = true; m_maxSlots = std::forward<MaxSlotsT>(value); }
121 template<typename MaxSlotsT = Aws::Map<Aws::String, int>>
122 AccountSettings& WithMaxSlots(MaxSlotsT&& value) { SetMaxSlots(std::forward<MaxSlotsT>(value)); return *this;}
123 inline AccountSettings& AddMaxSlots(Aws::String key, int value) {
124 m_maxSlotsHasBeenSet = true; m_maxSlots.emplace(key, value); return *this;
125 }
127
129
133 inline int GetDefaultJobTimeoutMinutes() const { return m_defaultJobTimeoutMinutes; }
134 inline bool DefaultJobTimeoutMinutesHasBeenSet() const { return m_defaultJobTimeoutMinutesHasBeenSet; }
135 inline void SetDefaultJobTimeoutMinutes(int value) { m_defaultJobTimeoutMinutesHasBeenSet = true; m_defaultJobTimeoutMinutes = value; }
138
140
147 inline bool GetSkipAppResign() const { return m_skipAppResign; }
148 inline bool SkipAppResignHasBeenSet() const { return m_skipAppResignHasBeenSet; }
149 inline void SetSkipAppResign(bool value) { m_skipAppResignHasBeenSet = true; m_skipAppResign = value; }
150 inline AccountSettings& WithSkipAppResign(bool value) { SetSkipAppResign(value); return *this;}
152 private:
153
154 Aws::String m_awsAccountNumber;
155 bool m_awsAccountNumberHasBeenSet = false;
156
157 Aws::Map<DevicePlatform, int> m_unmeteredDevices;
158 bool m_unmeteredDevicesHasBeenSet = false;
159
160 Aws::Map<DevicePlatform, int> m_unmeteredRemoteAccessDevices;
161 bool m_unmeteredRemoteAccessDevicesHasBeenSet = false;
162
163 int m_maxJobTimeoutMinutes{0};
164 bool m_maxJobTimeoutMinutesHasBeenSet = false;
165
166 TrialMinutes m_trialMinutes;
167 bool m_trialMinutesHasBeenSet = false;
168
170 bool m_maxSlotsHasBeenSet = false;
171
172 int m_defaultJobTimeoutMinutes{0};
173 bool m_defaultJobTimeoutMinutesHasBeenSet = false;
174
175 bool m_skipAppResign{false};
176 bool m_skipAppResignHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace DeviceFarm
181} // 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