AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
UpdateCapacityProviderRequest.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace ECS
16{
17namespace 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
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
108
114
115 private:
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 AutoScalingGroupProviderUpdate m_autoScalingGroupProvider;
121 bool m_autoScalingGroupProviderHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace ECS
126} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
UpdateCapacityProviderRequest & WithName(const Aws::String &value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateCapacityProviderRequest & WithName(const char *value)
void SetAutoScalingGroupProvider(AutoScalingGroupProviderUpdate &&value)
virtual const char * GetServiceRequestName() const override
AWS_ECS_API Aws::String SerializePayload() const override
const AutoScalingGroupProviderUpdate & GetAutoScalingGroupProvider() const
UpdateCapacityProviderRequest & WithAutoScalingGroupProvider(AutoScalingGroupProviderUpdate &&value)
void SetAutoScalingGroupProvider(const AutoScalingGroupProviderUpdate &value)
UpdateCapacityProviderRequest & WithAutoScalingGroupProvider(const AutoScalingGroupProviderUpdate &value)
UpdateCapacityProviderRequest & WithName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String