AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
HealthCheckPathResponseObject.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/HealthCheckPathDestinationResponseObject.h>
11#include <aws/ec2/model/HealthCheckPathSourceResponseObject.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
31 public:
32 AWS_EC2_API HealthCheckPathResponseObject() = default;
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const HealthCheckPathSourceResponseObject& GetSource() const { return m_source; }
44 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
45 template <typename SourceT = HealthCheckPathSourceResponseObject>
46 void SetSource(SourceT&& value) {
47 m_sourceHasBeenSet = true;
48 m_source = std::forward<SourceT>(value);
49 }
50 template <typename SourceT = HealthCheckPathSourceResponseObject>
52 SetSource(std::forward<SourceT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<HealthCheckPathDestinationResponseObject>& GetDestinations() const { return m_destinations; }
62 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
63 template <typename DestinationsT = Aws::Vector<HealthCheckPathDestinationResponseObject>>
64 void SetDestinations(DestinationsT&& value) {
65 m_destinationsHasBeenSet = true;
66 m_destinations = std::forward<DestinationsT>(value);
67 }
68 template <typename DestinationsT = Aws::Vector<HealthCheckPathDestinationResponseObject>>
70 SetDestinations(std::forward<DestinationsT>(value));
71 return *this;
72 }
73 template <typename DestinationsT = HealthCheckPathDestinationResponseObject>
75 m_destinationsHasBeenSet = true;
76 m_destinations.emplace_back(std::forward<DestinationsT>(value));
77 return *this;
78 }
80 private:
82
84 bool m_sourceHasBeenSet = false;
85 bool m_destinationsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace EC2
90} // namespace Aws
HealthCheckPathResponseObject & WithDestinations(DestinationsT &&value)
AWS_EC2_API HealthCheckPathResponseObject & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API HealthCheckPathResponseObject(const Aws::Utils::Xml::XmlNode &xmlNode)
HealthCheckPathResponseObject & WithSource(SourceT &&value)
HealthCheckPathResponseObject & AddDestinations(DestinationsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< HealthCheckPathDestinationResponseObject > & GetDestinations() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const HealthCheckPathSourceResponseObject & GetSource() const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream