AWS SDK for C++

AWS SDK for C++ Version 1.11.889

Loading...
Searching...
No Matches
DistributionSegment.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/TargetCapacityType.h>
9#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace AutoScaling {
21namespace Model {
22
30 public:
31 AWS_AUTOSCALING_API DistributionSegment() = default;
32 AWS_AUTOSCALING_API DistributionSegment(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_AUTOSCALING_API DistributionSegment& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
51 inline const Aws::Vector<TargetCapacityType>& GetTargetCapacityTypes() const { return m_targetCapacityTypes; }
52 inline bool TargetCapacityTypesHasBeenSet() const { return m_targetCapacityTypesHasBeenSet; }
53 template <typename TargetCapacityTypesT = Aws::Vector<TargetCapacityType>>
54 void SetTargetCapacityTypes(TargetCapacityTypesT&& value) {
55 m_targetCapacityTypesHasBeenSet = true;
56 m_targetCapacityTypes = std::forward<TargetCapacityTypesT>(value);
57 }
58 template <typename TargetCapacityTypesT = Aws::Vector<TargetCapacityType>>
59 DistributionSegment& WithTargetCapacityTypes(TargetCapacityTypesT&& value) {
60 SetTargetCapacityTypes(std::forward<TargetCapacityTypesT>(value));
61 return *this;
62 }
64 m_targetCapacityTypesHasBeenSet = true;
65 m_targetCapacityTypes.push_back(value);
66 return *this;
67 }
69 private:
70 Aws::Vector<TargetCapacityType> m_targetCapacityTypes;
71 bool m_targetCapacityTypesHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace AutoScaling
76} // namespace Aws
AWS_AUTOSCALING_API DistributionSegment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_AUTOSCALING_API DistributionSegment()=default
void SetTargetCapacityTypes(TargetCapacityTypesT &&value)
DistributionSegment & WithTargetCapacityTypes(TargetCapacityTypesT &&value)
const Aws::Vector< TargetCapacityType > & GetTargetCapacityTypes() const
DistributionSegment & AddTargetCapacityTypes(TargetCapacityType value)
AWS_AUTOSCALING_API DistributionSegment(const Aws::Utils::Xml::XmlNode &xmlNode)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream