AWS SDK for C++  0.12.9
AWS SDK for C++
ClusterNode.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace Redshift
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  ClusterNode();
41  ClusterNode(const Aws::Utils::Xml::XmlNode& xmlNode);
42  ClusterNode& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
50  inline const Aws::String& GetNodeRole() const{ return m_nodeRole; }
51 
55  inline void SetNodeRole(const Aws::String& value) { m_nodeRoleHasBeenSet = true; m_nodeRole = value; }
56 
60  inline void SetNodeRole(Aws::String&& value) { m_nodeRoleHasBeenSet = true; m_nodeRole = value; }
61 
65  inline void SetNodeRole(const char* value) { m_nodeRoleHasBeenSet = true; m_nodeRole.assign(value); }
66 
70  inline ClusterNode& WithNodeRole(const Aws::String& value) { SetNodeRole(value); return *this;}
71 
75  inline ClusterNode& WithNodeRole(Aws::String&& value) { SetNodeRole(value); return *this;}
76 
80  inline ClusterNode& WithNodeRole(const char* value) { SetNodeRole(value); return *this;}
81 
85  inline const Aws::String& GetPrivateIPAddress() const{ return m_privateIPAddress; }
86 
90  inline void SetPrivateIPAddress(const Aws::String& value) { m_privateIPAddressHasBeenSet = true; m_privateIPAddress = value; }
91 
95  inline void SetPrivateIPAddress(Aws::String&& value) { m_privateIPAddressHasBeenSet = true; m_privateIPAddress = value; }
96 
100  inline void SetPrivateIPAddress(const char* value) { m_privateIPAddressHasBeenSet = true; m_privateIPAddress.assign(value); }
101 
105  inline ClusterNode& WithPrivateIPAddress(const Aws::String& value) { SetPrivateIPAddress(value); return *this;}
106 
110  inline ClusterNode& WithPrivateIPAddress(Aws::String&& value) { SetPrivateIPAddress(value); return *this;}
111 
115  inline ClusterNode& WithPrivateIPAddress(const char* value) { SetPrivateIPAddress(value); return *this;}
116 
120  inline const Aws::String& GetPublicIPAddress() const{ return m_publicIPAddress; }
121 
125  inline void SetPublicIPAddress(const Aws::String& value) { m_publicIPAddressHasBeenSet = true; m_publicIPAddress = value; }
126 
130  inline void SetPublicIPAddress(Aws::String&& value) { m_publicIPAddressHasBeenSet = true; m_publicIPAddress = value; }
131 
135  inline void SetPublicIPAddress(const char* value) { m_publicIPAddressHasBeenSet = true; m_publicIPAddress.assign(value); }
136 
140  inline ClusterNode& WithPublicIPAddress(const Aws::String& value) { SetPublicIPAddress(value); return *this;}
141 
145  inline ClusterNode& WithPublicIPAddress(Aws::String&& value) { SetPublicIPAddress(value); return *this;}
146 
150  inline ClusterNode& WithPublicIPAddress(const char* value) { SetPublicIPAddress(value); return *this;}
151 
152  private:
153  Aws::String m_nodeRole;
154  bool m_nodeRoleHasBeenSet;
155  Aws::String m_privateIPAddress;
156  bool m_privateIPAddressHasBeenSet;
157  Aws::String m_publicIPAddress;
158  bool m_publicIPAddressHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace Redshift
163 } // namespace Aws
ClusterNode & WithNodeRole(const char *value)
Definition: ClusterNode.h:80
ClusterNode & WithNodeRole(Aws::String &&value)
Definition: ClusterNode.h:75
void SetNodeRole(Aws::String &&value)
Definition: ClusterNode.h:60
void SetPublicIPAddress(Aws::String &&value)
Definition: ClusterNode.h:130
void SetPrivateIPAddress(const char *value)
Definition: ClusterNode.h:100
ClusterNode & WithPublicIPAddress(Aws::String &&value)
Definition: ClusterNode.h:145
void SetPrivateIPAddress(const Aws::String &value)
Definition: ClusterNode.h:90
ClusterNode & WithPrivateIPAddress(const char *value)
Definition: ClusterNode.h:115
ClusterNode & WithPrivateIPAddress(Aws::String &&value)
Definition: ClusterNode.h:110
#define AWS_REDSHIFT_API
const Aws::String & GetPublicIPAddress() const
Definition: ClusterNode.h:120
void SetPublicIPAddress(const Aws::String &value)
Definition: ClusterNode.h:125
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetPrivateIPAddress(Aws::String &&value)
Definition: ClusterNode.h:95
ClusterNode & WithPublicIPAddress(const char *value)
Definition: ClusterNode.h:150
void SetNodeRole(const Aws::String &value)
Definition: ClusterNode.h:55
const Aws::String & GetNodeRole() const
Definition: ClusterNode.h:50
void SetPublicIPAddress(const char *value)
Definition: ClusterNode.h:135
ClusterNode & WithPrivateIPAddress(const Aws::String &value)
Definition: ClusterNode.h:105
const Aws::String & GetPrivateIPAddress() const
Definition: ClusterNode.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ClusterNode & WithNodeRole(const Aws::String &value)
Definition: ClusterNode.h:70
ClusterNode & WithPublicIPAddress(const Aws::String &value)
Definition: ClusterNode.h:140
void SetNodeRole(const char *value)
Definition: ClusterNode.h:65
JSON (JavaScript Object Notation).