AWS SDK for C++  0.12.9
AWS SDK for C++
MovingAddressStatus.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/ec2/EC2_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace EC2
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  MovingAddressStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
52 
56  inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
57 
61  inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
62 
66  inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
67 
71  inline MovingAddressStatus& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
72 
76  inline MovingAddressStatus& WithPublicIp(Aws::String&& value) { SetPublicIp(value); return *this;}
77 
81  inline MovingAddressStatus& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
82 
87  inline const MoveStatus& GetMoveStatus() const{ return m_moveStatus; }
88 
93  inline void SetMoveStatus(const MoveStatus& value) { m_moveStatusHasBeenSet = true; m_moveStatus = value; }
94 
99  inline void SetMoveStatus(MoveStatus&& value) { m_moveStatusHasBeenSet = true; m_moveStatus = value; }
100 
105  inline MovingAddressStatus& WithMoveStatus(const MoveStatus& value) { SetMoveStatus(value); return *this;}
106 
111  inline MovingAddressStatus& WithMoveStatus(MoveStatus&& value) { SetMoveStatus(value); return *this;}
112 
113  private:
114  Aws::String m_publicIp;
115  bool m_publicIpHasBeenSet;
116  MoveStatus m_moveStatus;
117  bool m_moveStatusHasBeenSet;
118  };
119 
120 } // namespace Model
121 } // namespace EC2
122 } // namespace Aws
MovingAddressStatus & WithPublicIp(const Aws::String &value)
void SetPublicIp(const Aws::String &value)
MovingAddressStatus & WithPublicIp(Aws::String &&value)
MovingAddressStatus & WithPublicIp(const char *value)
MovingAddressStatus & WithMoveStatus(MoveStatus &&value)
const Aws::String & GetPublicIp() const
void SetPublicIp(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const MoveStatus & GetMoveStatus() const
MovingAddressStatus & WithMoveStatus(const MoveStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetMoveStatus(MoveStatus &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
void SetMoveStatus(const MoveStatus &value)
JSON (JavaScript Object Notation).