AWS SDK for C++  0.14.3
AWS SDK for C++
IPRange.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
20 #include <aws/redshift/model/Tag.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace Redshift
32 {
33 namespace Model
34 {
35 
40  {
41  public:
42  IPRange();
43  IPRange(const Aws::Utils::Xml::XmlNode& xmlNode);
44  IPRange& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const Aws::String& GetStatus() const{ return m_status; }
53 
57  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
58 
62  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
63 
67  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
68 
72  inline IPRange& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
73 
77  inline IPRange& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
78 
82  inline IPRange& WithStatus(const char* value) { SetStatus(value); return *this;}
83 
87  inline const Aws::String& GetCIDRIP() const{ return m_cIDRIP; }
88 
92  inline void SetCIDRIP(const Aws::String& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = value; }
93 
97  inline void SetCIDRIP(Aws::String&& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = value; }
98 
102  inline void SetCIDRIP(const char* value) { m_cIDRIPHasBeenSet = true; m_cIDRIP.assign(value); }
103 
107  inline IPRange& WithCIDRIP(const Aws::String& value) { SetCIDRIP(value); return *this;}
108 
112  inline IPRange& WithCIDRIP(Aws::String&& value) { SetCIDRIP(value); return *this;}
113 
117  inline IPRange& WithCIDRIP(const char* value) { SetCIDRIP(value); return *this;}
118 
122  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
123 
127  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
128 
132  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
133 
137  inline IPRange& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
138 
142  inline IPRange& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
143 
147  inline IPRange& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
148 
152  inline IPRange& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
153 
154  private:
155  Aws::String m_status;
156  bool m_statusHasBeenSet;
157  Aws::String m_cIDRIP;
158  bool m_cIDRIPHasBeenSet;
159  Aws::Vector<Tag> m_tags;
160  bool m_tagsHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace Redshift
165 } // namespace Aws
void SetStatus(const Aws::String &value)
Definition: IPRange.h:57
void SetCIDRIP(const char *value)
Definition: IPRange.h:102
void SetStatus(const char *value)
Definition: IPRange.h:67
IPRange & WithCIDRIP(const char *value)
Definition: IPRange.h:117
void SetTags(const Aws::Vector< Tag > &value)
Definition: IPRange.h:127
void SetCIDRIP(const Aws::String &value)
Definition: IPRange.h:92
IPRange & WithStatus(Aws::String &&value)
Definition: IPRange.h:77
IPRange & WithStatus(const char *value)
Definition: IPRange.h:82
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::String & GetStatus() const
Definition: IPRange.h:52
#define AWS_REDSHIFT_API
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::Vector< Tag > & GetTags() const
Definition: IPRange.h:122
void SetCIDRIP(Aws::String &&value)
Definition: IPRange.h:97
IPRange & AddTags(Tag &&value)
Definition: IPRange.h:152
IPRange & WithStatus(const Aws::String &value)
Definition: IPRange.h:72
void SetTags(Aws::Vector< Tag > &&value)
Definition: IPRange.h:132
const Aws::String & GetCIDRIP() const
Definition: IPRange.h:87
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetStatus(Aws::String &&value)
Definition: IPRange.h:62
IPRange & WithCIDRIP(Aws::String &&value)
Definition: IPRange.h:112
IPRange & WithTags(const Aws::Vector< Tag > &value)
Definition: IPRange.h:137
IPRange & WithCIDRIP(const Aws::String &value)
Definition: IPRange.h:107
IPRange & WithTags(Aws::Vector< Tag > &&value)
Definition: IPRange.h:142
JSON (JavaScript Object Notation).
IPRange & AddTags(const Tag &value)
Definition: IPRange.h:147