AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateFleetCapacityRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace GameLift
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_GAMELIFT_API UpdateFleetCapacityRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateFleetCapacity"; }
31
32 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
33
35
36
38
42 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
43 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
44 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
45 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
46 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
47 inline UpdateFleetCapacityRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
48 inline UpdateFleetCapacityRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
49 inline UpdateFleetCapacityRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
51
53
59 inline int GetDesiredInstances() const{ return m_desiredInstances; }
60 inline bool DesiredInstancesHasBeenSet() const { return m_desiredInstancesHasBeenSet; }
61 inline void SetDesiredInstances(int value) { m_desiredInstancesHasBeenSet = true; m_desiredInstances = value; }
62 inline UpdateFleetCapacityRequest& WithDesiredInstances(int value) { SetDesiredInstances(value); return *this;}
64
66
70 inline int GetMinSize() const{ return m_minSize; }
71 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
72 inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
73 inline UpdateFleetCapacityRequest& WithMinSize(int value) { SetMinSize(value); return *this;}
75
77
81 inline int GetMaxSize() const{ return m_maxSize; }
82 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
83 inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
84 inline UpdateFleetCapacityRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;}
86
88
92 inline const Aws::String& GetLocation() const{ return m_location; }
93 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
94 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
95 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
96 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
97 inline UpdateFleetCapacityRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
98 inline UpdateFleetCapacityRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
99 inline UpdateFleetCapacityRequest& WithLocation(const char* value) { SetLocation(value); return *this;}
101 private:
102
103 Aws::String m_fleetId;
104 bool m_fleetIdHasBeenSet = false;
105
106 int m_desiredInstances;
107 bool m_desiredInstancesHasBeenSet = false;
108
109 int m_minSize;
110 bool m_minSizeHasBeenSet = false;
111
112 int m_maxSize;
113 bool m_maxSizeHasBeenSet = false;
114
115 Aws::String m_location;
116 bool m_locationHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace GameLift
121} // namespace Aws
UpdateFleetCapacityRequest & WithFleetId(const Aws::String &value)
UpdateFleetCapacityRequest & WithLocation(Aws::String &&value)
UpdateFleetCapacityRequest & WithMinSize(int value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateFleetCapacityRequest & WithLocation(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateFleetCapacityRequest & WithLocation(const Aws::String &value)
UpdateFleetCapacityRequest & WithFleetId(Aws::String &&value)
UpdateFleetCapacityRequest & WithDesiredInstances(int value)
UpdateFleetCapacityRequest & WithFleetId(const char *value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
UpdateFleetCapacityRequest & WithMaxSize(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String