AWS SDK for C++  1.9.123
AWS SDK for C++
UpdateCapacityProviderRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ECS
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateCapacityProvider"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetName() const{ return m_name; }
42 
46  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 
51  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 
56  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 
61  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 
66  inline UpdateCapacityProviderRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 
71  inline UpdateCapacityProviderRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
72 
76  inline UpdateCapacityProviderRequest& WithName(const char* value) { SetName(value); return *this;}
77 
78 
83  inline const AutoScalingGroupProviderUpdate& GetAutoScalingGroupProvider() const{ return m_autoScalingGroupProvider; }
84 
89  inline bool AutoScalingGroupProviderHasBeenSet() const { return m_autoScalingGroupProviderHasBeenSet; }
90 
95  inline void SetAutoScalingGroupProvider(const AutoScalingGroupProviderUpdate& value) { m_autoScalingGroupProviderHasBeenSet = true; m_autoScalingGroupProvider = value; }
96 
101  inline void SetAutoScalingGroupProvider(AutoScalingGroupProviderUpdate&& value) { m_autoScalingGroupProviderHasBeenSet = true; m_autoScalingGroupProvider = std::move(value); }
102 
107  inline UpdateCapacityProviderRequest& WithAutoScalingGroupProvider(const AutoScalingGroupProviderUpdate& value) { SetAutoScalingGroupProvider(value); return *this;}
108 
113  inline UpdateCapacityProviderRequest& WithAutoScalingGroupProvider(AutoScalingGroupProviderUpdate&& value) { SetAutoScalingGroupProvider(std::move(value)); return *this;}
114 
115  private:
116 
117  Aws::String m_name;
118  bool m_nameHasBeenSet;
119 
120  AutoScalingGroupProviderUpdate m_autoScalingGroupProvider;
121  bool m_autoScalingGroupProviderHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace ECS
126 } // namespace Aws
Aws::ECS::Model::UpdateCapacityProviderRequest::SetName
void SetName(const char *value)
Definition: UpdateCapacityProviderRequest.h:61
Aws::ECS::Model::UpdateCapacityProviderRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::UpdateCapacityProviderRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateCapacityProviderRequest.h:31
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::UpdateCapacityProviderRequest::WithName
UpdateCapacityProviderRequest & WithName(Aws::String &&value)
Definition: UpdateCapacityProviderRequest.h:71
Aws::ECS::Model::UpdateCapacityProviderRequest::WithName
UpdateCapacityProviderRequest & WithName(const Aws::String &value)
Definition: UpdateCapacityProviderRequest.h:66
Aws::ECS::Model::UpdateCapacityProviderRequest::WithAutoScalingGroupProvider
UpdateCapacityProviderRequest & WithAutoScalingGroupProvider(const AutoScalingGroupProviderUpdate &value)
Definition: UpdateCapacityProviderRequest.h:107
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
AutoScalingGroupProviderUpdate.h
Aws::ECS::Model::UpdateCapacityProviderRequest::GetName
const Aws::String & GetName() const
Definition: UpdateCapacityProviderRequest.h:41
Aws::ECS::Model::AutoScalingGroupProviderUpdate
Definition: AutoScalingGroupProviderUpdate.h:34
Aws::ECS::Model::UpdateCapacityProviderRequest::UpdateCapacityProviderRequest
UpdateCapacityProviderRequest()
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::UpdateCapacityProviderRequest::SetAutoScalingGroupProvider
void SetAutoScalingGroupProvider(AutoScalingGroupProviderUpdate &&value)
Definition: UpdateCapacityProviderRequest.h:101
Aws::ECS::Model::UpdateCapacityProviderRequest::GetAutoScalingGroupProvider
const AutoScalingGroupProviderUpdate & GetAutoScalingGroupProvider() const
Definition: UpdateCapacityProviderRequest.h:83
Aws::ECS::Model::UpdateCapacityProviderRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateCapacityProviderRequest.h:51
Aws::ECS::Model::UpdateCapacityProviderRequest::WithAutoScalingGroupProvider
UpdateCapacityProviderRequest & WithAutoScalingGroupProvider(AutoScalingGroupProviderUpdate &&value)
Definition: UpdateCapacityProviderRequest.h:113
Aws::ECS::Model::UpdateCapacityProviderRequest::AutoScalingGroupProviderHasBeenSet
bool AutoScalingGroupProviderHasBeenSet() const
Definition: UpdateCapacityProviderRequest.h:89
AWSString.h
Aws::ECS::Model::UpdateCapacityProviderRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateCapacityProviderRequest.h:56
Aws::ECS::Model::UpdateCapacityProviderRequest::WithName
UpdateCapacityProviderRequest & WithName(const char *value)
Definition: UpdateCapacityProviderRequest.h:76
Aws::ECS::Model::UpdateCapacityProviderRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::UpdateCapacityProviderRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateCapacityProviderRequest.h:46
Aws::ECS::Model::UpdateCapacityProviderRequest
Definition: UpdateCapacityProviderRequest.h:23
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::UpdateCapacityProviderRequest::SetAutoScalingGroupProvider
void SetAutoScalingGroupProvider(const AutoScalingGroupProviderUpdate &value)
Definition: UpdateCapacityProviderRequest.h:95
ECS_EXPORTS.h
ECSRequest.h