AWS SDK for C++  0.12.9
AWS SDK for C++
AccountSettings.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace DeviceFarm
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  AccountSettings& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline const Aws::String& GetAwsAccountNumber() const{ return m_awsAccountNumber; }
51 
56  inline void SetAwsAccountNumber(const Aws::String& value) { m_awsAccountNumberHasBeenSet = true; m_awsAccountNumber = value; }
57 
62  inline void SetAwsAccountNumber(Aws::String&& value) { m_awsAccountNumberHasBeenSet = true; m_awsAccountNumber = value; }
63 
68  inline void SetAwsAccountNumber(const char* value) { m_awsAccountNumberHasBeenSet = true; m_awsAccountNumber.assign(value); }
69 
74  inline AccountSettings& WithAwsAccountNumber(const Aws::String& value) { SetAwsAccountNumber(value); return *this;}
75 
80  inline AccountSettings& WithAwsAccountNumber(Aws::String&& value) { SetAwsAccountNumber(value); return *this;}
81 
86  inline AccountSettings& WithAwsAccountNumber(const char* value) { SetAwsAccountNumber(value); return *this;}
87 
91  inline const Aws::Map<DevicePlatform, long>& GetUnmeteredDevices() const{ return m_unmeteredDevices; }
92 
96  inline void SetUnmeteredDevices(const Aws::Map<DevicePlatform, long>& value) { m_unmeteredDevicesHasBeenSet = true; m_unmeteredDevices = value; }
97 
101  inline void SetUnmeteredDevices(Aws::Map<DevicePlatform, long>&& value) { m_unmeteredDevicesHasBeenSet = true; m_unmeteredDevices = value; }
102 
106  inline AccountSettings& WithUnmeteredDevices(const Aws::Map<DevicePlatform, long>& value) { SetUnmeteredDevices(value); return *this;}
107 
111  inline AccountSettings& WithUnmeteredDevices(Aws::Map<DevicePlatform, long>&& value) { SetUnmeteredDevices(value); return *this;}
112 
116  inline AccountSettings& AddUnmeteredDevices(const DevicePlatform& key, long value) { m_unmeteredDevicesHasBeenSet = true; m_unmeteredDevices[key] = value; return *this; }
117 
121  inline AccountSettings& AddUnmeteredDevices(DevicePlatform&& key, long value) { m_unmeteredDevicesHasBeenSet = true; m_unmeteredDevices[key] = value; return *this; }
122 
127  inline const Aws::Map<DevicePlatform, long>& GetUnmeteredRemoteAccessDevices() const{ return m_unmeteredRemoteAccessDevices; }
128 
133  inline void SetUnmeteredRemoteAccessDevices(const Aws::Map<DevicePlatform, long>& value) { m_unmeteredRemoteAccessDevicesHasBeenSet = true; m_unmeteredRemoteAccessDevices = value; }
134 
139  inline void SetUnmeteredRemoteAccessDevices(Aws::Map<DevicePlatform, long>&& value) { m_unmeteredRemoteAccessDevicesHasBeenSet = true; m_unmeteredRemoteAccessDevices = value; }
140 
145  inline AccountSettings& WithUnmeteredRemoteAccessDevices(const Aws::Map<DevicePlatform, long>& value) { SetUnmeteredRemoteAccessDevices(value); return *this;}
146 
151  inline AccountSettings& WithUnmeteredRemoteAccessDevices(Aws::Map<DevicePlatform, long>&& value) { SetUnmeteredRemoteAccessDevices(value); return *this;}
152 
157  inline AccountSettings& AddUnmeteredRemoteAccessDevices(const DevicePlatform& key, long value) { m_unmeteredRemoteAccessDevicesHasBeenSet = true; m_unmeteredRemoteAccessDevices[key] = value; return *this; }
158 
163  inline AccountSettings& AddUnmeteredRemoteAccessDevices(DevicePlatform&& key, long value) { m_unmeteredRemoteAccessDevicesHasBeenSet = true; m_unmeteredRemoteAccessDevices[key] = value; return *this; }
164 
165  private:
166  Aws::String m_awsAccountNumber;
167  bool m_awsAccountNumberHasBeenSet;
168  Aws::Map<DevicePlatform, long> m_unmeteredDevices;
169  bool m_unmeteredDevicesHasBeenSet;
170  Aws::Map<DevicePlatform, long> m_unmeteredRemoteAccessDevices;
171  bool m_unmeteredRemoteAccessDevicesHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace DeviceFarm
176 } // namespace Aws
#define AWS_DEVICEFARM_API
AccountSettings & WithAwsAccountNumber(const char *value)
AccountSettings & WithUnmeteredDevices(const Aws::Map< DevicePlatform, long > &value)
const Aws::String & GetAwsAccountNumber() const
void SetAwsAccountNumber(const char *value)
AccountSettings & WithUnmeteredRemoteAccessDevices(const Aws::Map< DevicePlatform, long > &value)
void SetAwsAccountNumber(Aws::String &&value)
AccountSettings & WithUnmeteredDevices(Aws::Map< DevicePlatform, long > &&value)
AccountSettings & WithAwsAccountNumber(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
void SetUnmeteredRemoteAccessDevices(const Aws::Map< DevicePlatform, long > &value)
AccountSettings & WithUnmeteredRemoteAccessDevices(Aws::Map< DevicePlatform, long > &&value)
AccountSettings & AddUnmeteredRemoteAccessDevices(const DevicePlatform &key, long value)
void SetUnmeteredDevices(Aws::Map< DevicePlatform, long > &&value)
const Aws::Map< DevicePlatform, long > & GetUnmeteredRemoteAccessDevices() const
AccountSettings & WithAwsAccountNumber(Aws::String &&value)
void SetUnmeteredRemoteAccessDevices(Aws::Map< DevicePlatform, long > &&value)
const Aws::Map< DevicePlatform, long > & GetUnmeteredDevices() const
AccountSettings & AddUnmeteredDevices(const DevicePlatform &key, long value)
AccountSettings & AddUnmeteredRemoteAccessDevices(DevicePlatform &&key, long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AccountSettings & AddUnmeteredDevices(DevicePlatform &&key, long value)
void SetAwsAccountNumber(const Aws::String &value)
void SetUnmeteredDevices(const Aws::Map< DevicePlatform, long > &value)
JSON (JavaScript Object Notation).