AWS SDK for C++  0.12.9
AWS SDK for C++
HostEntry.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
16 #include <aws/ecs/ECS_EXPORTS.h>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace ECS
29 {
30 namespace Model
31 {
32 
39  {
40  public:
41  HostEntry();
42  HostEntry(const Aws::Utils::Json::JsonValue& jsonValue);
43  HostEntry& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetHostname() const{ return m_hostname; }
50 
54  inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
55 
59  inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
60 
64  inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
65 
69  inline HostEntry& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
70 
74  inline HostEntry& WithHostname(Aws::String&& value) { SetHostname(value); return *this;}
75 
79  inline HostEntry& WithHostname(const char* value) { SetHostname(value); return *this;}
80 
84  inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
85 
89  inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
90 
94  inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
95 
99  inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
100 
104  inline HostEntry& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
105 
109  inline HostEntry& WithIpAddress(Aws::String&& value) { SetIpAddress(value); return *this;}
110 
114  inline HostEntry& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
115 
116  private:
117  Aws::String m_hostname;
118  bool m_hostnameHasBeenSet;
119  Aws::String m_ipAddress;
120  bool m_ipAddressHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace ECS
125 } // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:34
HostEntry & WithIpAddress(const char *value)
Definition: HostEntry.h:114
HostEntry & WithHostname(const Aws::String &value)
Definition: HostEntry.h:69
void SetIpAddress(const char *value)
Definition: HostEntry.h:99
Definition: HostEntry.h:38
HostEntry & WithHostname(Aws::String &&value)
Definition: HostEntry.h:74
HostEntry & WithHostname(const char *value)
Definition: HostEntry.h:79
const Aws::String & GetHostname() const
Definition: HostEntry.h:49
void SetIpAddress(const Aws::String &value)
Definition: HostEntry.h:89
void SetHostname(const char *value)
Definition: HostEntry.h:64
void SetIpAddress(Aws::String &&value)
Definition: HostEntry.h:94
void SetHostname(Aws::String &&value)
Definition: HostEntry.h:59
HostEntry & WithIpAddress(const Aws::String &value)
Definition: HostEntry.h:104
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetHostname(const Aws::String &value)
Definition: HostEntry.h:54
HostEntry & WithIpAddress(Aws::String &&value)
Definition: HostEntry.h:109
const Aws::String & GetIpAddress() const
Definition: HostEntry.h:84
JSON (JavaScript Object Notation).