AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetachTrafficSourcesRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/autoscaling/model/TrafficSourceIdentifier.h>
12#include <utility>
13
14namespace Aws
15{
16namespace AutoScaling
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_AUTOSCALING_API DetachTrafficSourcesRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DetachTrafficSources"; }
33
34 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
46 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
47 inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
48 inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
49 inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
52 inline DetachTrafficSourcesRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
54
56
60 inline const Aws::Vector<TrafficSourceIdentifier>& GetTrafficSources() const{ return m_trafficSources; }
61 inline bool TrafficSourcesHasBeenSet() const { return m_trafficSourcesHasBeenSet; }
62 inline void SetTrafficSources(const Aws::Vector<TrafficSourceIdentifier>& value) { m_trafficSourcesHasBeenSet = true; m_trafficSources = value; }
63 inline void SetTrafficSources(Aws::Vector<TrafficSourceIdentifier>&& value) { m_trafficSourcesHasBeenSet = true; m_trafficSources = std::move(value); }
66 inline DetachTrafficSourcesRequest& AddTrafficSources(const TrafficSourceIdentifier& value) { m_trafficSourcesHasBeenSet = true; m_trafficSources.push_back(value); return *this; }
67 inline DetachTrafficSourcesRequest& AddTrafficSources(TrafficSourceIdentifier&& value) { m_trafficSourcesHasBeenSet = true; m_trafficSources.push_back(std::move(value)); return *this; }
69 private:
70
71 Aws::String m_autoScalingGroupName;
72 bool m_autoScalingGroupNameHasBeenSet = false;
73
75 bool m_trafficSourcesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace AutoScaling
80} // namespace Aws
DetachTrafficSourcesRequest & WithAutoScalingGroupName(const char *value)
void SetTrafficSources(const Aws::Vector< TrafficSourceIdentifier > &value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
DetachTrafficSourcesRequest & AddTrafficSources(const TrafficSourceIdentifier &value)
const Aws::Vector< TrafficSourceIdentifier > & GetTrafficSources() const
DetachTrafficSourcesRequest & WithTrafficSources(const Aws::Vector< TrafficSourceIdentifier > &value)
DetachTrafficSourcesRequest & WithAutoScalingGroupName(const Aws::String &value)
DetachTrafficSourcesRequest & WithAutoScalingGroupName(Aws::String &&value)
DetachTrafficSourcesRequest & AddTrafficSources(TrafficSourceIdentifier &&value)
void SetTrafficSources(Aws::Vector< TrafficSourceIdentifier > &&value)
DetachTrafficSourcesRequest & WithTrafficSources(Aws::Vector< TrafficSourceIdentifier > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector