AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SupportedRegionDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
28 public:
29 AWS_EC2_API SupportedRegionDetail() = default;
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetRegion() const { return m_region; }
41 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
42 template <typename RegionT = Aws::String>
43 void SetRegion(RegionT&& value) {
44 m_regionHasBeenSet = true;
45 m_region = std::forward<RegionT>(value);
46 }
47 template <typename RegionT = Aws::String>
49 SetRegion(std::forward<RegionT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetServiceState() const { return m_serviceState; }
61 inline bool ServiceStateHasBeenSet() const { return m_serviceStateHasBeenSet; }
62 template <typename ServiceStateT = Aws::String>
63 void SetServiceState(ServiceStateT&& value) {
64 m_serviceStateHasBeenSet = true;
65 m_serviceState = std::forward<ServiceStateT>(value);
66 }
67 template <typename ServiceStateT = Aws::String>
68 SupportedRegionDetail& WithServiceState(ServiceStateT&& value) {
69 SetServiceState(std::forward<ServiceStateT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_region;
75
76 Aws::String m_serviceState;
77 bool m_regionHasBeenSet = false;
78 bool m_serviceStateHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace EC2
83} // namespace Aws
const Aws::String & GetServiceState() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API SupportedRegionDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SupportedRegionDetail & WithRegion(RegionT &&value)
AWS_EC2_API SupportedRegionDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetServiceState(ServiceStateT &&value)
SupportedRegionDetail & WithServiceState(ServiceStateT &&value)
AWS_EC2_API SupportedRegionDetail()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream