AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartInstanceRefreshRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/AutoScalingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/autoscaling/model/RefreshStrategy.h>
11#include <aws/autoscaling/model/DesiredConfiguration.h>
12#include <aws/autoscaling/model/RefreshPreferences.h>
13#include <utility>
14
15namespace Aws
16{
17namespace AutoScaling
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_AUTOSCALING_API StartInstanceRefreshRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartInstanceRefresh"; }
34
35 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
47 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
48 inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
49 inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
50 inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
53 inline StartInstanceRefreshRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
55
57
61 inline const RefreshStrategy& GetStrategy() const{ return m_strategy; }
62 inline bool StrategyHasBeenSet() const { return m_strategyHasBeenSet; }
63 inline void SetStrategy(const RefreshStrategy& value) { m_strategyHasBeenSet = true; m_strategy = value; }
64 inline void SetStrategy(RefreshStrategy&& value) { m_strategyHasBeenSet = true; m_strategy = std::move(value); }
65 inline StartInstanceRefreshRequest& WithStrategy(const RefreshStrategy& value) { SetStrategy(value); return *this;}
66 inline StartInstanceRefreshRequest& WithStrategy(RefreshStrategy&& value) { SetStrategy(std::move(value)); return *this;}
68
70
82 inline const DesiredConfiguration& GetDesiredConfiguration() const{ return m_desiredConfiguration; }
83 inline bool DesiredConfigurationHasBeenSet() const { return m_desiredConfigurationHasBeenSet; }
84 inline void SetDesiredConfiguration(const DesiredConfiguration& value) { m_desiredConfigurationHasBeenSet = true; m_desiredConfiguration = value; }
85 inline void SetDesiredConfiguration(DesiredConfiguration&& value) { m_desiredConfigurationHasBeenSet = true; m_desiredConfiguration = std::move(value); }
89
91
101 inline const RefreshPreferences& GetPreferences() const{ return m_preferences; }
102 inline bool PreferencesHasBeenSet() const { return m_preferencesHasBeenSet; }
103 inline void SetPreferences(const RefreshPreferences& value) { m_preferencesHasBeenSet = true; m_preferences = value; }
104 inline void SetPreferences(RefreshPreferences&& value) { m_preferencesHasBeenSet = true; m_preferences = std::move(value); }
106 inline StartInstanceRefreshRequest& WithPreferences(RefreshPreferences&& value) { SetPreferences(std::move(value)); return *this;}
108 private:
109
110 Aws::String m_autoScalingGroupName;
111 bool m_autoScalingGroupNameHasBeenSet = false;
112
113 RefreshStrategy m_strategy;
114 bool m_strategyHasBeenSet = false;
115
116 DesiredConfiguration m_desiredConfiguration;
117 bool m_desiredConfigurationHasBeenSet = false;
118
119 RefreshPreferences m_preferences;
120 bool m_preferencesHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace AutoScaling
125} // namespace Aws
StartInstanceRefreshRequest & WithStrategy(RefreshStrategy &&value)
StartInstanceRefreshRequest & WithPreferences(RefreshPreferences &&value)
StartInstanceRefreshRequest & WithStrategy(const RefreshStrategy &value)
StartInstanceRefreshRequest & WithAutoScalingGroupName(Aws::String &&value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
StartInstanceRefreshRequest & WithPreferences(const RefreshPreferences &value)
void SetDesiredConfiguration(const DesiredConfiguration &value)
StartInstanceRefreshRequest & WithAutoScalingGroupName(const Aws::String &value)
StartInstanceRefreshRequest & WithDesiredConfiguration(DesiredConfiguration &&value)
StartInstanceRefreshRequest & WithAutoScalingGroupName(const char *value)
StartInstanceRefreshRequest & WithDesiredConfiguration(const DesiredConfiguration &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String