AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AutoScalingGroupNameT = Aws::String>
48 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value); }
49 template<typename AutoScalingGroupNameT = Aws::String>
50 DetachTrafficSourcesRequest& WithAutoScalingGroupName(AutoScalingGroupNameT&& value) { SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value)); return *this;}
52
54
58 inline const Aws::Vector<TrafficSourceIdentifier>& GetTrafficSources() const { return m_trafficSources; }
59 inline bool TrafficSourcesHasBeenSet() const { return m_trafficSourcesHasBeenSet; }
60 template<typename TrafficSourcesT = Aws::Vector<TrafficSourceIdentifier>>
61 void SetTrafficSources(TrafficSourcesT&& value) { m_trafficSourcesHasBeenSet = true; m_trafficSources = std::forward<TrafficSourcesT>(value); }
62 template<typename TrafficSourcesT = Aws::Vector<TrafficSourceIdentifier>>
63 DetachTrafficSourcesRequest& WithTrafficSources(TrafficSourcesT&& value) { SetTrafficSources(std::forward<TrafficSourcesT>(value)); return *this;}
64 template<typename TrafficSourcesT = TrafficSourceIdentifier>
65 DetachTrafficSourcesRequest& AddTrafficSources(TrafficSourcesT&& value) { m_trafficSourcesHasBeenSet = true; m_trafficSources.emplace_back(std::forward<TrafficSourcesT>(value)); return *this; }
67 private:
68
69 Aws::String m_autoScalingGroupName;
70 bool m_autoScalingGroupNameHasBeenSet = false;
71
73 bool m_trafficSourcesHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace AutoScaling
78} // namespace Aws
DetachTrafficSourcesRequest & WithTrafficSources(TrafficSourcesT &&value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
DetachTrafficSourcesRequest & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
const Aws::Vector< TrafficSourceIdentifier > & GetTrafficSources() const
DetachTrafficSourcesRequest & AddTrafficSources(TrafficSourcesT &&value)
AWS_AUTOSCALING_API DetachTrafficSourcesRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector