AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SupportedRegionDetail.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_EC2_API SupportedRegionDetail() = default;
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetRegion() const { return m_region; }
47 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
48 template<typename RegionT = Aws::String>
49 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
50 template<typename RegionT = Aws::String>
51 SupportedRegionDetail& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
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) { m_serviceStateHasBeenSet = true; m_serviceState = std::forward<ServiceStateT>(value); }
64 template<typename ServiceStateT = Aws::String>
65 SupportedRegionDetail& WithServiceState(ServiceStateT&& value) { SetServiceState(std::forward<ServiceStateT>(value)); return *this;}
67 private:
68
69 Aws::String m_region;
70 bool m_regionHasBeenSet = false;
71
72 Aws::String m_serviceState;
73 bool m_serviceStateHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace EC2
78} // 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