AWS SDK for C++  0.14.3
AWS SDK for C++
IpRoute.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace DirectoryService
29 {
30 namespace Model
31 {
32 
38  {
39  public:
40  IpRoute();
41  IpRoute(const Aws::Utils::Json::JsonValue& jsonValue);
42  IpRoute& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
51  inline const Aws::String& GetCidrIp() const{ return m_cidrIp; }
52 
59  inline void SetCidrIp(const Aws::String& value) { m_cidrIpHasBeenSet = true; m_cidrIp = value; }
60 
67  inline void SetCidrIp(Aws::String&& value) { m_cidrIpHasBeenSet = true; m_cidrIp = value; }
68 
75  inline void SetCidrIp(const char* value) { m_cidrIpHasBeenSet = true; m_cidrIp.assign(value); }
76 
83  inline IpRoute& WithCidrIp(const Aws::String& value) { SetCidrIp(value); return *this;}
84 
91  inline IpRoute& WithCidrIp(Aws::String&& value) { SetCidrIp(value); return *this;}
92 
99  inline IpRoute& WithCidrIp(const char* value) { SetCidrIp(value); return *this;}
100 
104  inline const Aws::String& GetDescription() const{ return m_description; }
105 
109  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
110 
114  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
115 
119  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
120 
124  inline IpRoute& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
125 
129  inline IpRoute& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
130 
134  inline IpRoute& WithDescription(const char* value) { SetDescription(value); return *this;}
135 
136  private:
137  Aws::String m_cidrIp;
138  bool m_cidrIpHasBeenSet;
139  Aws::String m_description;
140  bool m_descriptionHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace DirectoryService
145 } // namespace Aws
const Aws::String & GetDescription() const
Definition: IpRoute.h:104
IpRoute & WithDescription(Aws::String &&value)
Definition: IpRoute.h:129
#define AWS_DIRECTORYSERVICE_API
void SetCidrIp(const Aws::String &value)
Definition: IpRoute.h:59
void SetDescription(const char *value)
Definition: IpRoute.h:119
void SetCidrIp(const char *value)
Definition: IpRoute.h:75
const Aws::String & GetCidrIp() const
Definition: IpRoute.h:51
void SetCidrIp(Aws::String &&value)
Definition: IpRoute.h:67
void SetDescription(Aws::String &&value)
Definition: IpRoute.h:114
IpRoute & WithCidrIp(Aws::String &&value)
Definition: IpRoute.h:91
IpRoute & WithCidrIp(const Aws::String &value)
Definition: IpRoute.h:83
IpRoute & WithDescription(const char *value)
Definition: IpRoute.h:134
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDescription(const Aws::String &value)
Definition: IpRoute.h:109
IpRoute & WithCidrIp(const char *value)
Definition: IpRoute.h:99
IpRoute & WithDescription(const Aws::String &value)
Definition: IpRoute.h:124
JSON (JavaScript Object Notation).