AWS SDK for C++  0.12.9
AWS SDK for C++
Location.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 DirectConnect
29 {
30 namespace Model
31 {
32 
38  {
39  public:
40  Location();
41  Location(const Aws::Utils::Json::JsonValue& jsonValue);
42  Location& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetLocationCode() const{ return m_locationCode; }
49 
53  inline void SetLocationCode(const Aws::String& value) { m_locationCodeHasBeenSet = true; m_locationCode = value; }
54 
58  inline void SetLocationCode(Aws::String&& value) { m_locationCodeHasBeenSet = true; m_locationCode = value; }
59 
63  inline void SetLocationCode(const char* value) { m_locationCodeHasBeenSet = true; m_locationCode.assign(value); }
64 
68  inline Location& WithLocationCode(const Aws::String& value) { SetLocationCode(value); return *this;}
69 
73  inline Location& WithLocationCode(Aws::String&& value) { SetLocationCode(value); return *this;}
74 
78  inline Location& WithLocationCode(const char* value) { SetLocationCode(value); return *this;}
79 
84  inline const Aws::String& GetLocationName() const{ return m_locationName; }
85 
90  inline void SetLocationName(const Aws::String& value) { m_locationNameHasBeenSet = true; m_locationName = value; }
91 
96  inline void SetLocationName(Aws::String&& value) { m_locationNameHasBeenSet = true; m_locationName = value; }
97 
102  inline void SetLocationName(const char* value) { m_locationNameHasBeenSet = true; m_locationName.assign(value); }
103 
108  inline Location& WithLocationName(const Aws::String& value) { SetLocationName(value); return *this;}
109 
114  inline Location& WithLocationName(Aws::String&& value) { SetLocationName(value); return *this;}
115 
120  inline Location& WithLocationName(const char* value) { SetLocationName(value); return *this;}
121 
122  private:
123  Aws::String m_locationCode;
124  bool m_locationCodeHasBeenSet;
125  Aws::String m_locationName;
126  bool m_locationNameHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace DirectConnect
131 } // namespace Aws
const Aws::String & GetLocationName() const
Definition: Location.h:84
void SetLocationCode(const Aws::String &value)
Definition: Location.h:53
Location & WithLocationName(const char *value)
Definition: Location.h:120
Location & WithLocationCode(const char *value)
Definition: Location.h:78
void SetLocationCode(Aws::String &&value)
Definition: Location.h:58
Location & WithLocationCode(Aws::String &&value)
Definition: Location.h:73
const Aws::String & GetLocationCode() const
Definition: Location.h:48
void SetLocationName(Aws::String &&value)
Definition: Location.h:96
#define AWS_DIRECTCONNECT_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Location & WithLocationCode(const Aws::String &value)
Definition: Location.h:68
void SetLocationCode(const char *value)
Definition: Location.h:63
void SetLocationName(const char *value)
Definition: Location.h:102
Location & WithLocationName(const Aws::String &value)
Definition: Location.h:108
Location & WithLocationName(Aws::String &&value)
Definition: Location.h:114
void SetLocationName(const Aws::String &value)
Definition: Location.h:90
JSON (JavaScript Object Notation).