AWS SDK for C++  1.8.152
AWS SDK for C++
IpRoute.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace DirectoryService
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
47  inline const Aws::String& GetCidrIp() const{ return m_cidrIp; }
48 
55  inline bool CidrIpHasBeenSet() const { return m_cidrIpHasBeenSet; }
56 
63  inline void SetCidrIp(const Aws::String& value) { m_cidrIpHasBeenSet = true; m_cidrIp = value; }
64 
71  inline void SetCidrIp(Aws::String&& value) { m_cidrIpHasBeenSet = true; m_cidrIp = std::move(value); }
72 
79  inline void SetCidrIp(const char* value) { m_cidrIpHasBeenSet = true; m_cidrIp.assign(value); }
80 
87  inline IpRoute& WithCidrIp(const Aws::String& value) { SetCidrIp(value); return *this;}
88 
95  inline IpRoute& WithCidrIp(Aws::String&& value) { SetCidrIp(std::move(value)); return *this;}
96 
103  inline IpRoute& WithCidrIp(const char* value) { SetCidrIp(value); return *this;}
104 
105 
109  inline const Aws::String& GetDescription() const{ return m_description; }
110 
114  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 
119  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
120 
124  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
125 
129  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
130 
134  inline IpRoute& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
135 
139  inline IpRoute& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
140 
144  inline IpRoute& WithDescription(const char* value) { SetDescription(value); return *this;}
145 
146  private:
147 
148  Aws::String m_cidrIp;
149  bool m_cidrIpHasBeenSet;
150 
151  Aws::String m_description;
152  bool m_descriptionHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace DirectoryService
157 } // namespace Aws
Aws::DirectoryService::Model::IpRoute::GetDescription
const Aws::String & GetDescription() const
Definition: IpRoute.h:109
Aws::DirectoryService::Model::IpRoute::SetDescription
void SetDescription(const Aws::String &value)
Definition: IpRoute.h:119
Aws::DirectoryService::Model::IpRoute::GetCidrIp
const Aws::String & GetCidrIp() const
Definition: IpRoute.h:47
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::IpRoute::WithDescription
IpRoute & WithDescription(const Aws::String &value)
Definition: IpRoute.h:134
Aws::DirectoryService::Model::IpRoute::IpRoute
IpRoute()
Aws::DirectoryService::Model::IpRoute::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::IpRoute::CidrIpHasBeenSet
bool CidrIpHasBeenSet() const
Definition: IpRoute.h:55
Aws::DirectoryService::Model::IpRoute::SetDescription
void SetDescription(const char *value)
Definition: IpRoute.h:129
Aws::DirectoryService::Model::IpRoute::WithCidrIp
IpRoute & WithCidrIp(Aws::String &&value)
Definition: IpRoute.h:95
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::IpRoute
Definition: IpRoute.h:33
Aws::DirectoryService::Model::IpRoute::SetCidrIp
void SetCidrIp(Aws::String &&value)
Definition: IpRoute.h:71
Aws::DirectoryService::Model::IpRoute::WithDescription
IpRoute & WithDescription(Aws::String &&value)
Definition: IpRoute.h:139
Aws::DirectoryService::Model::IpRoute::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: IpRoute.h:114
Aws::DirectoryService::Model::IpRoute::IpRoute
IpRoute(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::IpRoute::SetCidrIp
void SetCidrIp(const Aws::String &value)
Definition: IpRoute.h:63
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::IpRoute::WithDescription
IpRoute & WithDescription(const char *value)
Definition: IpRoute.h:144
Aws::DirectoryService::Model::IpRoute::SetDescription
void SetDescription(Aws::String &&value)
Definition: IpRoute.h:124
Aws::DirectoryService::Model::IpRoute::WithCidrIp
IpRoute & WithCidrIp(const char *value)
Definition: IpRoute.h:103
Aws::DirectoryService::Model::IpRoute::SetCidrIp
void SetCidrIp(const char *value)
Definition: IpRoute.h:79
Aws::DirectoryService::Model::IpRoute::operator=
IpRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::IpRoute::WithCidrIp
IpRoute & WithCidrIp(const Aws::String &value)
Definition: IpRoute.h:87
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97