AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
AttachTrafficSourcesRequest.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 AttachTrafficSourcesRequest() = 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 "AttachTrafficSources"; }
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 AttachTrafficSourcesRequest& 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
81
89 inline bool GetSkipZonalShiftValidation() const { return m_skipZonalShiftValidation; }
90 inline bool SkipZonalShiftValidationHasBeenSet() const { return m_skipZonalShiftValidationHasBeenSet; }
91 inline void SetSkipZonalShiftValidation(bool value) {
92 m_skipZonalShiftValidationHasBeenSet = true;
93 m_skipZonalShiftValidation = value;
94 }
97 return *this;
98 }
100 private:
101 Aws::String m_autoScalingGroupName;
102
104
105 bool m_skipZonalShiftValidation{false};
106 bool m_autoScalingGroupNameHasBeenSet = false;
107 bool m_trafficSourcesHasBeenSet = false;
108 bool m_skipZonalShiftValidationHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace AutoScaling
113} // namespace Aws
const Aws::Vector< TrafficSourceIdentifier > & GetTrafficSources() const
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_AUTOSCALING_API AttachTrafficSourcesRequest()=default
AttachTrafficSourcesRequest & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
AttachTrafficSourcesRequest & AddTrafficSources(TrafficSourcesT &&value)
AttachTrafficSourcesRequest & WithTrafficSources(TrafficSourcesT &&value)
AttachTrafficSourcesRequest & WithSkipZonalShiftValidation(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector