AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
DetachTrafficSourcesRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScalingRequest.h>
8#include <aws/autoscaling/AutoScaling_EXPORTS.h>
9#include <aws/autoscaling/model/TrafficSourceIdentifier.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AutoScaling {
17namespace Model {
18
22 public:
23 AWS_AUTOSCALING_API DetachTrafficSourcesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DetachTrafficSources"; }
30
31 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
42 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
43 template <typename AutoScalingGroupNameT = Aws::String>
44 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) {
45 m_autoScalingGroupNameHasBeenSet = true;
46 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
47 }
48 template <typename AutoScalingGroupNameT = Aws::String>
49 DetachTrafficSourcesRequest& WithAutoScalingGroupName(AutoScalingGroupNameT&& value) {
50 SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<TrafficSourceIdentifier>& GetTrafficSources() const { return m_trafficSources; }
61 inline bool TrafficSourcesHasBeenSet() const { return m_trafficSourcesHasBeenSet; }
62 template <typename TrafficSourcesT = Aws::Vector<TrafficSourceIdentifier>>
63 void SetTrafficSources(TrafficSourcesT&& value) {
64 m_trafficSourcesHasBeenSet = true;
65 m_trafficSources = std::forward<TrafficSourcesT>(value);
66 }
67 template <typename TrafficSourcesT = Aws::Vector<TrafficSourceIdentifier>>
69 SetTrafficSources(std::forward<TrafficSourcesT>(value));
70 return *this;
71 }
72 template <typename TrafficSourcesT = TrafficSourceIdentifier>
74 m_trafficSourcesHasBeenSet = true;
75 m_trafficSources.emplace_back(std::forward<TrafficSourcesT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_autoScalingGroupName;
81 bool m_autoScalingGroupNameHasBeenSet = false;
82
84 bool m_trafficSourcesHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace AutoScaling
89} // 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