AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AttachTrafficSourcesRequest.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 AttachTrafficSourcesRequest() = 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 "AttachTrafficSources"; }
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 AttachTrafficSourcesRequest& 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 AttachTrafficSourcesRequest& WithTrafficSources(TrafficSourcesT&& value) { SetTrafficSources(std::forward<TrafficSourcesT>(value)); return *this;}
64 template<typename TrafficSourcesT = TrafficSourceIdentifier>
65 AttachTrafficSourcesRequest& AddTrafficSources(TrafficSourcesT&& value) { m_trafficSourcesHasBeenSet = true; m_trafficSources.emplace_back(std::forward<TrafficSourcesT>(value)); return *this; }
67
69
77 inline bool GetSkipZonalShiftValidation() const { return m_skipZonalShiftValidation; }
78 inline bool SkipZonalShiftValidationHasBeenSet() const { return m_skipZonalShiftValidationHasBeenSet; }
79 inline void SetSkipZonalShiftValidation(bool value) { m_skipZonalShiftValidationHasBeenSet = true; m_skipZonalShiftValidation = value; }
82 private:
83
84 Aws::String m_autoScalingGroupName;
85 bool m_autoScalingGroupNameHasBeenSet = false;
86
88 bool m_trafficSourcesHasBeenSet = false;
89
90 bool m_skipZonalShiftValidation{false};
91 bool m_skipZonalShiftValidationHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace AutoScaling
96} // 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