AWS SDK for C++  1.9.129
AWS SDK for C++
GetUsagePlanRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace APIGateway
15 {
16 namespace Model
17 {
18 
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 "GetUsagePlan"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
43  inline const Aws::String& GetUsagePlanId() const{ return m_usagePlanId; }
44 
49  inline bool UsagePlanIdHasBeenSet() const { return m_usagePlanIdHasBeenSet; }
50 
55  inline void SetUsagePlanId(const Aws::String& value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId = value; }
56 
61  inline void SetUsagePlanId(Aws::String&& value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId = std::move(value); }
62 
67  inline void SetUsagePlanId(const char* value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId.assign(value); }
68 
73  inline GetUsagePlanRequest& WithUsagePlanId(const Aws::String& value) { SetUsagePlanId(value); return *this;}
74 
79  inline GetUsagePlanRequest& WithUsagePlanId(Aws::String&& value) { SetUsagePlanId(std::move(value)); return *this;}
80 
85  inline GetUsagePlanRequest& WithUsagePlanId(const char* value) { SetUsagePlanId(value); return *this;}
86 
87  private:
88 
89  Aws::String m_usagePlanId;
90  bool m_usagePlanIdHasBeenSet;
91  };
92 
93 } // namespace Model
94 } // namespace APIGateway
95 } // namespace Aws
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::GetUsagePlanRequest::GetUsagePlanRequest
GetUsagePlanRequest()
Aws::APIGateway::Model::GetUsagePlanRequest
Definition: GetUsagePlanRequest.h:26
APIGateway_EXPORTS.h
Aws::APIGateway::Model::GetUsagePlanRequest::SetUsagePlanId
void SetUsagePlanId(const Aws::String &value)
Definition: GetUsagePlanRequest.h:55
Aws::APIGateway::Model::GetUsagePlanRequest::WithUsagePlanId
GetUsagePlanRequest & WithUsagePlanId(const Aws::String &value)
Definition: GetUsagePlanRequest.h:73
APIGatewayRequest.h
Aws::APIGateway::Model::GetUsagePlanRequest::UsagePlanIdHasBeenSet
bool UsagePlanIdHasBeenSet() const
Definition: GetUsagePlanRequest.h:49
Aws::APIGateway::Model::GetUsagePlanRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::APIGateway::Model::GetUsagePlanRequest::SetUsagePlanId
void SetUsagePlanId(Aws::String &&value)
Definition: GetUsagePlanRequest.h:61
Aws::APIGateway::Model::GetUsagePlanRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetUsagePlanRequest.h:34
Aws::APIGateway::Model::GetUsagePlanRequest::WithUsagePlanId
GetUsagePlanRequest & WithUsagePlanId(Aws::String &&value)
Definition: GetUsagePlanRequest.h:79
Aws::APIGateway::Model::GetUsagePlanRequest::WithUsagePlanId
GetUsagePlanRequest & WithUsagePlanId(const char *value)
Definition: GetUsagePlanRequest.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::GetUsagePlanRequest::SetUsagePlanId
void SetUsagePlanId(const char *value)
Definition: GetUsagePlanRequest.h:67
Aws::APIGateway::Model::GetUsagePlanRequest::GetUsagePlanId
const Aws::String & GetUsagePlanId() const
Definition: GetUsagePlanRequest.h:43
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18