AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FleetCapacity.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/model/EC2InstanceType.h>
10#include <aws/gamelift/model/EC2InstanceCounts.h>
11#include <aws/gamelift/model/ReplicaContainerGroupCounts.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 GameLift
25{
26namespace Model
27{
28
43 {
44 public:
45 AWS_GAMELIFT_API FleetCapacity();
46 AWS_GAMELIFT_API FleetCapacity(Aws::Utils::Json::JsonView jsonValue);
48 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
56 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
57 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
58 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
59 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
60 inline FleetCapacity& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
61 inline FleetCapacity& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
62 inline FleetCapacity& WithFleetId(const char* value) { SetFleetId(value); return *this;}
64
66
73 inline const Aws::String& GetFleetArn() const{ return m_fleetArn; }
74 inline bool FleetArnHasBeenSet() const { return m_fleetArnHasBeenSet; }
75 inline void SetFleetArn(const Aws::String& value) { m_fleetArnHasBeenSet = true; m_fleetArn = value; }
76 inline void SetFleetArn(Aws::String&& value) { m_fleetArnHasBeenSet = true; m_fleetArn = std::move(value); }
77 inline void SetFleetArn(const char* value) { m_fleetArnHasBeenSet = true; m_fleetArn.assign(value); }
78 inline FleetCapacity& WithFleetArn(const Aws::String& value) { SetFleetArn(value); return *this;}
79 inline FleetCapacity& WithFleetArn(Aws::String&& value) { SetFleetArn(std::move(value)); return *this;}
80 inline FleetCapacity& WithFleetArn(const char* value) { SetFleetArn(value); return *this;}
82
84
91 inline const EC2InstanceType& GetInstanceType() const{ return m_instanceType; }
92 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
93 inline void SetInstanceType(const EC2InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
94 inline void SetInstanceType(EC2InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
95 inline FleetCapacity& WithInstanceType(const EC2InstanceType& value) { SetInstanceType(value); return *this;}
96 inline FleetCapacity& WithInstanceType(EC2InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
98
100
106 inline const EC2InstanceCounts& GetInstanceCounts() const{ return m_instanceCounts; }
107 inline bool InstanceCountsHasBeenSet() const { return m_instanceCountsHasBeenSet; }
108 inline void SetInstanceCounts(const EC2InstanceCounts& value) { m_instanceCountsHasBeenSet = true; m_instanceCounts = value; }
109 inline void SetInstanceCounts(EC2InstanceCounts&& value) { m_instanceCountsHasBeenSet = true; m_instanceCounts = std::move(value); }
110 inline FleetCapacity& WithInstanceCounts(const EC2InstanceCounts& value) { SetInstanceCounts(value); return *this;}
111 inline FleetCapacity& WithInstanceCounts(EC2InstanceCounts&& value) { SetInstanceCounts(std::move(value)); return *this;}
113
115
119 inline const Aws::String& GetLocation() const{ return m_location; }
120 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
121 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
122 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
123 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
124 inline FleetCapacity& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
125 inline FleetCapacity& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
126 inline FleetCapacity& WithLocation(const char* value) { SetLocation(value); return *this;}
128
130
135 inline const ReplicaContainerGroupCounts& GetReplicaContainerGroupCounts() const{ return m_replicaContainerGroupCounts; }
136 inline bool ReplicaContainerGroupCountsHasBeenSet() const { return m_replicaContainerGroupCountsHasBeenSet; }
137 inline void SetReplicaContainerGroupCounts(const ReplicaContainerGroupCounts& value) { m_replicaContainerGroupCountsHasBeenSet = true; m_replicaContainerGroupCounts = value; }
138 inline void SetReplicaContainerGroupCounts(ReplicaContainerGroupCounts&& value) { m_replicaContainerGroupCountsHasBeenSet = true; m_replicaContainerGroupCounts = std::move(value); }
142 private:
143
144 Aws::String m_fleetId;
145 bool m_fleetIdHasBeenSet = false;
146
147 Aws::String m_fleetArn;
148 bool m_fleetArnHasBeenSet = false;
149
150 EC2InstanceType m_instanceType;
151 bool m_instanceTypeHasBeenSet = false;
152
153 EC2InstanceCounts m_instanceCounts;
154 bool m_instanceCountsHasBeenSet = false;
155
156 Aws::String m_location;
157 bool m_locationHasBeenSet = false;
158
159 ReplicaContainerGroupCounts m_replicaContainerGroupCounts;
160 bool m_replicaContainerGroupCountsHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace GameLift
165} // namespace Aws
FleetCapacity & WithFleetId(const char *value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFleetId(const char *value)
void SetInstanceCounts(const EC2InstanceCounts &value)
void SetFleetArn(Aws::String &&value)
void SetFleetId(const Aws::String &value)
void SetReplicaContainerGroupCounts(const ReplicaContainerGroupCounts &value)
void SetInstanceCounts(EC2InstanceCounts &&value)
const EC2InstanceCounts & GetInstanceCounts() const
void SetLocation(const char *value)
FleetCapacity & WithReplicaContainerGroupCounts(const ReplicaContainerGroupCounts &value)
void SetFleetArn(const char *value)
void SetInstanceType(EC2InstanceType &&value)
const Aws::String & GetFleetArn() const
FleetCapacity & WithFleetArn(Aws::String &&value)
const ReplicaContainerGroupCounts & GetReplicaContainerGroupCounts() const
FleetCapacity & WithLocation(Aws::String &&value)
void SetFleetArn(const Aws::String &value)
FleetCapacity & WithFleetArn(const Aws::String &value)
void SetFleetId(Aws::String &&value)
void SetInstanceType(const EC2InstanceType &value)
FleetCapacity & WithInstanceType(const EC2InstanceType &value)
FleetCapacity & WithFleetArn(const char *value)
void SetLocation(const Aws::String &value)
const Aws::String & GetLocation() const
void SetReplicaContainerGroupCounts(ReplicaContainerGroupCounts &&value)
const EC2InstanceType & GetInstanceType() const
AWS_GAMELIFT_API FleetCapacity & operator=(Aws::Utils::Json::JsonView jsonValue)
FleetCapacity & WithInstanceCounts(const EC2InstanceCounts &value)
FleetCapacity & WithLocation(const Aws::String &value)
AWS_GAMELIFT_API FleetCapacity(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFleetId() const
FleetCapacity & WithFleetId(const Aws::String &value)
FleetCapacity & WithLocation(const char *value)
FleetCapacity & WithInstanceCounts(EC2InstanceCounts &&value)
FleetCapacity & WithInstanceType(EC2InstanceType &&value)
FleetCapacity & WithReplicaContainerGroupCounts(ReplicaContainerGroupCounts &&value)
FleetCapacity & WithFleetId(Aws::String &&value)
void SetLocation(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue