AWS SDK for C++  1.9.20
AWS SDK for C++
DescribeEC2InstanceLimitsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace GameLift
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "DescribeEC2InstanceLimits"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
47  inline const EC2InstanceType& GetEC2InstanceType() const{ return m_eC2InstanceType; }
48 
55  inline bool EC2InstanceTypeHasBeenSet() const { return m_eC2InstanceTypeHasBeenSet; }
56 
63  inline void SetEC2InstanceType(const EC2InstanceType& value) { m_eC2InstanceTypeHasBeenSet = true; m_eC2InstanceType = value; }
64 
71  inline void SetEC2InstanceType(EC2InstanceType&& value) { m_eC2InstanceTypeHasBeenSet = true; m_eC2InstanceType = std::move(value); }
72 
79  inline DescribeEC2InstanceLimitsRequest& WithEC2InstanceType(const EC2InstanceType& value) { SetEC2InstanceType(value); return *this;}
80 
87  inline DescribeEC2InstanceLimitsRequest& WithEC2InstanceType(EC2InstanceType&& value) { SetEC2InstanceType(std::move(value)); return *this;}
88 
89 
94  inline const Aws::String& GetLocation() const{ return m_location; }
95 
100  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
101 
106  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
107 
112  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
113 
118  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
119 
124  inline DescribeEC2InstanceLimitsRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
125 
130  inline DescribeEC2InstanceLimitsRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
131 
136  inline DescribeEC2InstanceLimitsRequest& WithLocation(const char* value) { SetLocation(value); return *this;}
137 
138  private:
139 
140  EC2InstanceType m_eC2InstanceType;
141  bool m_eC2InstanceTypeHasBeenSet;
142 
143  Aws::String m_location;
144  bool m_locationHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace GameLift
149 } // namespace Aws
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::SetLocation
void SetLocation(Aws::String &&value)
Definition: DescribeEC2InstanceLimitsRequest.h:112
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::EC2InstanceTypeHasBeenSet
bool EC2InstanceTypeHasBeenSet() const
Definition: DescribeEC2InstanceLimitsRequest.h:55
Aws::GameLift::Model::EC2InstanceType
EC2InstanceType
Definition: EC2InstanceType.h:17
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::SetLocation
void SetLocation(const Aws::String &value)
Definition: DescribeEC2InstanceLimitsRequest.h:106
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::SetLocation
void SetLocation(const char *value)
Definition: DescribeEC2InstanceLimitsRequest.h:118
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: DescribeEC2InstanceLimitsRequest.h:100
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::WithLocation
DescribeEC2InstanceLimitsRequest & WithLocation(Aws::String &&value)
Definition: DescribeEC2InstanceLimitsRequest.h:130
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::WithEC2InstanceType
DescribeEC2InstanceLimitsRequest & WithEC2InstanceType(const EC2InstanceType &value)
Definition: DescribeEC2InstanceLimitsRequest.h:79
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::GetEC2InstanceType
const EC2InstanceType & GetEC2InstanceType() const
Definition: DescribeEC2InstanceLimitsRequest.h:47
GameLift_EXPORTS.h
GameLiftRequest.h
EC2InstanceType.h
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::WithLocation
DescribeEC2InstanceLimitsRequest & WithLocation(const Aws::String &value)
Definition: DescribeEC2InstanceLimitsRequest.h:124
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::GetLocation
const Aws::String & GetLocation() const
Definition: DescribeEC2InstanceLimitsRequest.h:94
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
AWSString.h
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::SetEC2InstanceType
void SetEC2InstanceType(EC2InstanceType &&value)
Definition: DescribeEC2InstanceLimitsRequest.h:71
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::WithEC2InstanceType
DescribeEC2InstanceLimitsRequest & WithEC2InstanceType(EC2InstanceType &&value)
Definition: DescribeEC2InstanceLimitsRequest.h:87
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::SetEC2InstanceType
void SetEC2InstanceType(const EC2InstanceType &value)
Definition: DescribeEC2InstanceLimitsRequest.h:63
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest
Definition: DescribeEC2InstanceLimitsRequest.h:26
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeEC2InstanceLimitsRequest.h:34
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::DescribeEC2InstanceLimitsRequest
DescribeEC2InstanceLimitsRequest()
Aws::GameLift::Model::DescribeEC2InstanceLimitsRequest::WithLocation
DescribeEC2InstanceLimitsRequest & WithLocation(const char *value)
Definition: DescribeEC2InstanceLimitsRequest.h:136