AWS SDK for C++  1.8.152
AWS SDK for C++
RegionsInfo.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace DirectoryService
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetPrimaryRegion() const{ return m_primaryRegion; }
47 
52  inline bool PrimaryRegionHasBeenSet() const { return m_primaryRegionHasBeenSet; }
53 
58  inline void SetPrimaryRegion(const Aws::String& value) { m_primaryRegionHasBeenSet = true; m_primaryRegion = value; }
59 
64  inline void SetPrimaryRegion(Aws::String&& value) { m_primaryRegionHasBeenSet = true; m_primaryRegion = std::move(value); }
65 
70  inline void SetPrimaryRegion(const char* value) { m_primaryRegionHasBeenSet = true; m_primaryRegion.assign(value); }
71 
76  inline RegionsInfo& WithPrimaryRegion(const Aws::String& value) { SetPrimaryRegion(value); return *this;}
77 
82  inline RegionsInfo& WithPrimaryRegion(Aws::String&& value) { SetPrimaryRegion(std::move(value)); return *this;}
83 
88  inline RegionsInfo& WithPrimaryRegion(const char* value) { SetPrimaryRegion(value); return *this;}
89 
90 
95  inline const Aws::Vector<Aws::String>& GetAdditionalRegions() const{ return m_additionalRegions; }
96 
101  inline bool AdditionalRegionsHasBeenSet() const { return m_additionalRegionsHasBeenSet; }
102 
107  inline void SetAdditionalRegions(const Aws::Vector<Aws::String>& value) { m_additionalRegionsHasBeenSet = true; m_additionalRegions = value; }
108 
113  inline void SetAdditionalRegions(Aws::Vector<Aws::String>&& value) { m_additionalRegionsHasBeenSet = true; m_additionalRegions = std::move(value); }
114 
119  inline RegionsInfo& WithAdditionalRegions(const Aws::Vector<Aws::String>& value) { SetAdditionalRegions(value); return *this;}
120 
125  inline RegionsInfo& WithAdditionalRegions(Aws::Vector<Aws::String>&& value) { SetAdditionalRegions(std::move(value)); return *this;}
126 
131  inline RegionsInfo& AddAdditionalRegions(const Aws::String& value) { m_additionalRegionsHasBeenSet = true; m_additionalRegions.push_back(value); return *this; }
132 
137  inline RegionsInfo& AddAdditionalRegions(Aws::String&& value) { m_additionalRegionsHasBeenSet = true; m_additionalRegions.push_back(std::move(value)); return *this; }
138 
143  inline RegionsInfo& AddAdditionalRegions(const char* value) { m_additionalRegionsHasBeenSet = true; m_additionalRegions.push_back(value); return *this; }
144 
145  private:
146 
147  Aws::String m_primaryRegion;
148  bool m_primaryRegionHasBeenSet;
149 
150  Aws::Vector<Aws::String> m_additionalRegions;
151  bool m_additionalRegionsHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace DirectoryService
156 } // namespace Aws
Aws::DirectoryService::Model::RegionsInfo::AddAdditionalRegions
RegionsInfo & AddAdditionalRegions(const Aws::String &value)
Definition: RegionsInfo.h:131
Aws::DirectoryService::Model::RegionsInfo::WithPrimaryRegion
RegionsInfo & WithPrimaryRegion(const char *value)
Definition: RegionsInfo.h:88
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::RegionsInfo::SetAdditionalRegions
void SetAdditionalRegions(const Aws::Vector< Aws::String > &value)
Definition: RegionsInfo.h:107
Aws::DirectoryService::Model::RegionsInfo::AddAdditionalRegions
RegionsInfo & AddAdditionalRegions(const char *value)
Definition: RegionsInfo.h:143
Aws::DirectoryService::Model::RegionsInfo::WithAdditionalRegions
RegionsInfo & WithAdditionalRegions(Aws::Vector< Aws::String > &&value)
Definition: RegionsInfo.h:125
Aws::DirectoryService::Model::RegionsInfo::RegionsInfo
RegionsInfo(Aws::Utils::Json::JsonView jsonValue)
DirectoryService_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::RegionsInfo::WithPrimaryRegion
RegionsInfo & WithPrimaryRegion(Aws::String &&value)
Definition: RegionsInfo.h:82
Aws::DirectoryService::Model::RegionsInfo::AddAdditionalRegions
RegionsInfo & AddAdditionalRegions(Aws::String &&value)
Definition: RegionsInfo.h:137
Aws::DirectoryService::Model::RegionsInfo::WithPrimaryRegion
RegionsInfo & WithPrimaryRegion(const Aws::String &value)
Definition: RegionsInfo.h:76
AWSVector.h
Aws::DirectoryService::Model::RegionsInfo::GetPrimaryRegion
const Aws::String & GetPrimaryRegion() const
Definition: RegionsInfo.h:46
Aws::DirectoryService::Model::RegionsInfo::AdditionalRegionsHasBeenSet
bool AdditionalRegionsHasBeenSet() const
Definition: RegionsInfo.h:101
Aws::DirectoryService::Model::RegionsInfo::SetAdditionalRegions
void SetAdditionalRegions(Aws::Vector< Aws::String > &&value)
Definition: RegionsInfo.h:113
Aws::DirectoryService::Model::RegionsInfo::WithAdditionalRegions
RegionsInfo & WithAdditionalRegions(const Aws::Vector< Aws::String > &value)
Definition: RegionsInfo.h:119
Aws::DirectoryService::Model::RegionsInfo::PrimaryRegionHasBeenSet
bool PrimaryRegionHasBeenSet() const
Definition: RegionsInfo.h:52
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::DirectoryService::Model::RegionsInfo::SetPrimaryRegion
void SetPrimaryRegion(Aws::String &&value)
Definition: RegionsInfo.h:64
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::RegionsInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::RegionsInfo::RegionsInfo
RegionsInfo()
Aws::DirectoryService::Model::RegionsInfo
Definition: RegionsInfo.h:34
Aws::DirectoryService::Model::RegionsInfo::SetPrimaryRegion
void SetPrimaryRegion(const Aws::String &value)
Definition: RegionsInfo.h:58
Aws::DirectoryService::Model::RegionsInfo::SetPrimaryRegion
void SetPrimaryRegion(const char *value)
Definition: RegionsInfo.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::RegionsInfo::operator=
RegionsInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::RegionsInfo::GetAdditionalRegions
const Aws::Vector< Aws::String > & GetAdditionalRegions() const
Definition: RegionsInfo.h:95