AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAwsAccountNumber(const Aws::String& value) { m_awsAccountNumberHasBeenSet = true; m_awsAccountNumber = value; }
52 inline void SetAwsAccountNumber(Aws::String&& value) { m_awsAccountNumberHasBeenSet = true; m_awsAccountNumber = std::move(value); }
53 inline void SetAwsAccountNumber(const char* value) { m_awsAccountNumberHasBeenSet = true; m_awsAccountNumber.assign(value); }
54 inline AccountSettings& WithAwsAccountNumber(const Aws::String& value) { SetAwsAccountNumber(value); return *this;}
55 inline AccountSettings& WithAwsAccountNumber(Aws::String&& value) { SetAwsAccountNumber(std::move(value)); return *this;}
56 inline AccountSettings& WithAwsAccountNumber(const char* value) { SetAwsAccountNumber(value); return *this;}
58
60
63 inline const Aws::Map<DevicePlatform, int>& GetUnmeteredDevices() const{ return m_unmeteredDevices; }
64 inline bool UnmeteredDevicesHasBeenSet() const { return m_unmeteredDevicesHasBeenSet; }
65 inline void SetUnmeteredDevices(const Aws::Map<DevicePlatform, int>& value) { m_unmeteredDevicesHasBeenSet = true; m_unmeteredDevices = value; }
66 inline void SetUnmeteredDevices(Aws::Map<DevicePlatform, int>&& value) { m_unmeteredDevicesHasBeenSet = true; m_unmeteredDevices = std::move(value); }
69 inline AccountSettings& AddUnmeteredDevices(const DevicePlatform& key, int value) { m_unmeteredDevicesHasBeenSet = true; m_unmeteredDevices.emplace(key, value); return *this; }
70 inline AccountSettings& AddUnmeteredDevices(DevicePlatform&& key, int value) { m_unmeteredDevicesHasBeenSet = true; m_unmeteredDevices.emplace(std::move(key), value); return *this; }
72
74
78 inline const Aws::Map<DevicePlatform, int>& GetUnmeteredRemoteAccessDevices() const{ return m_unmeteredRemoteAccessDevices; }
79 inline bool UnmeteredRemoteAccessDevicesHasBeenSet() const { return m_unmeteredRemoteAccessDevicesHasBeenSet; }
80 inline void SetUnmeteredRemoteAccessDevices(const Aws::Map<DevicePlatform, int>& value) { m_unmeteredRemoteAccessDevicesHasBeenSet = true; m_unmeteredRemoteAccessDevices = value; }
81 inline void SetUnmeteredRemoteAccessDevices(Aws::Map<DevicePlatform, int>&& value) { m_unmeteredRemoteAccessDevicesHasBeenSet = true; m_unmeteredRemoteAccessDevices = std::move(value); }
84 inline AccountSettings& AddUnmeteredRemoteAccessDevices(const DevicePlatform& key, int value) { m_unmeteredRemoteAccessDevicesHasBeenSet = true; m_unmeteredRemoteAccessDevices.emplace(key, value); return *this; }
85 inline AccountSettings& AddUnmeteredRemoteAccessDevices(DevicePlatform&& key, int value) { m_unmeteredRemoteAccessDevicesHasBeenSet = true; m_unmeteredRemoteAccessDevices.emplace(std::move(key), value); return *this; }
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 inline void SetTrialMinutes(const TrialMinutes& value) { m_trialMinutesHasBeenSet = true; m_trialMinutes = value; }
105 inline void SetTrialMinutes(TrialMinutes&& value) { m_trialMinutesHasBeenSet = true; m_trialMinutes = std::move(value); }
106 inline AccountSettings& WithTrialMinutes(const TrialMinutes& value) { SetTrialMinutes(value); return *this;}
107 inline AccountSettings& WithTrialMinutes(TrialMinutes&& value) { SetTrialMinutes(std::move(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 inline void SetMaxSlots(const Aws::Map<Aws::String, int>& value) { m_maxSlotsHasBeenSet = true; m_maxSlots = value; }
120 inline void SetMaxSlots(Aws::Map<Aws::String, int>&& value) { m_maxSlotsHasBeenSet = true; m_maxSlots = std::move(value); }
121 inline AccountSettings& WithMaxSlots(const Aws::Map<Aws::String, int>& value) { SetMaxSlots(value); return *this;}
122 inline AccountSettings& WithMaxSlots(Aws::Map<Aws::String, int>&& value) { SetMaxSlots(std::move(value)); return *this;}
123 inline AccountSettings& AddMaxSlots(const Aws::String& key, int value) { m_maxSlotsHasBeenSet = true; m_maxSlots.emplace(key, value); return *this; }
124 inline AccountSettings& AddMaxSlots(Aws::String&& key, int value) { m_maxSlotsHasBeenSet = true; m_maxSlots.emplace(std::move(key), value); return *this; }
125 inline AccountSettings& AddMaxSlots(const char* key, int value) { m_maxSlotsHasBeenSet = true; m_maxSlots.emplace(key, value); return *this; }
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;
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;
173 bool m_defaultJobTimeoutMinutesHasBeenSet = false;
174
175 bool m_skipAppResign;
176 bool m_skipAppResignHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace DeviceFarm
181} // namespace Aws
AccountSettings & WithAwsAccountNumber(const Aws::String &value)
AccountSettings & WithMaxSlots(Aws::Map< Aws::String, int > &&value)
void SetAwsAccountNumber(const Aws::String &value)
const Aws::String & GetAwsAccountNumber() const
AccountSettings & WithMaxSlots(const Aws::Map< Aws::String, int > &value)
AccountSettings & WithUnmeteredRemoteAccessDevices(Aws::Map< DevicePlatform, int > &&value)
const Aws::Map< DevicePlatform, int > & GetUnmeteredDevices() const
AccountSettings & WithTrialMinutes(const TrialMinutes &value)
AccountSettings & WithSkipAppResign(bool value)
void SetMaxSlots(Aws::Map< Aws::String, int > &&value)
AccountSettings & WithMaxJobTimeoutMinutes(int value)
void SetUnmeteredRemoteAccessDevices(Aws::Map< DevicePlatform, int > &&value)
AccountSettings & AddUnmeteredDevices(const DevicePlatform &key, int value)
AWS_DEVICEFARM_API AccountSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUnmeteredRemoteAccessDevices(const Aws::Map< DevicePlatform, int > &value)
void SetAwsAccountNumber(Aws::String &&value)
void SetMaxSlots(const Aws::Map< Aws::String, int > &value)
AWS_DEVICEFARM_API AccountSettings(Aws::Utils::Json::JsonView jsonValue)
void SetUnmeteredDevices(const Aws::Map< DevicePlatform, int > &value)
const Aws::Map< DevicePlatform, int > & GetUnmeteredRemoteAccessDevices() const
void SetTrialMinutes(const TrialMinutes &value)
AccountSettings & WithTrialMinutes(TrialMinutes &&value)
AccountSettings & AddUnmeteredDevices(DevicePlatform &&key, int value)
AccountSettings & WithAwsAccountNumber(Aws::String &&value)
const Aws::Map< Aws::String, int > & GetMaxSlots() const
AccountSettings & AddMaxSlots(Aws::String &&key, int value)
const TrialMinutes & GetTrialMinutes() const
AccountSettings & WithDefaultJobTimeoutMinutes(int value)
void SetUnmeteredDevices(Aws::Map< DevicePlatform, int > &&value)
void SetAwsAccountNumber(const char *value)
AccountSettings & WithAwsAccountNumber(const char *value)
AccountSettings & AddUnmeteredRemoteAccessDevices(DevicePlatform &&key, int value)
AccountSettings & WithUnmeteredRemoteAccessDevices(const Aws::Map< DevicePlatform, int > &value)
AccountSettings & AddMaxSlots(const char *key, int value)
void SetTrialMinutes(TrialMinutes &&value)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
AccountSettings & AddUnmeteredRemoteAccessDevices(const DevicePlatform &key, int value)
AccountSettings & WithUnmeteredDevices(Aws::Map< DevicePlatform, int > &&value)
AccountSettings & AddMaxSlots(const Aws::String &key, int value)
AccountSettings & WithUnmeteredDevices(const Aws::Map< DevicePlatform, int > &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