AWS SDK for C++  0.14.3
AWS SDK for C++
ReservedInstancesModificationResponse.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:
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 
53  inline const Aws::String& GetReservedInstancesId() const{ return m_reservedInstancesId; }
54 
60  inline void SetReservedInstancesId(const Aws::String& value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId = value; }
61 
67  inline void SetReservedInstancesId(Aws::String&& value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId = value; }
68 
74  inline void SetReservedInstancesId(const char* value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId.assign(value); }
75 
81  inline ReservedInstancesModificationResponse& WithReservedInstancesId(const Aws::String& value) { SetReservedInstancesId(value); return *this;}
82 
88  inline ReservedInstancesModificationResponse& WithReservedInstancesId(Aws::String&& value) { SetReservedInstancesId(value); return *this;}
89 
95  inline ReservedInstancesModificationResponse& WithReservedInstancesId(const char* value) { SetReservedInstancesId(value); return *this;}
96 
101  inline const ReservedInstancesConfiguration& GetTargetConfiguration() const{ return m_targetConfiguration; }
102 
107  inline void SetTargetConfiguration(const ReservedInstancesConfiguration& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = value; }
108 
113  inline void SetTargetConfiguration(ReservedInstancesConfiguration&& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = value; }
114 
119  inline ReservedInstancesModificationResponse& WithTargetConfiguration(const ReservedInstancesConfiguration& value) { SetTargetConfiguration(value); return *this;}
120 
125  inline ReservedInstancesModificationResponse& WithTargetConfiguration(ReservedInstancesConfiguration&& value) { SetTargetConfiguration(value); return *this;}
126 
127  private:
128  Aws::String m_reservedInstancesId;
129  bool m_reservedInstancesIdHasBeenSet;
130  ReservedInstancesConfiguration m_targetConfiguration;
131  bool m_targetConfigurationHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace EC2
136 } // namespace Aws
void SetTargetConfiguration(const ReservedInstancesConfiguration &value)
const ReservedInstancesConfiguration & GetTargetConfiguration() const
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ReservedInstancesModificationResponse & WithReservedInstancesId(Aws::String &&value)
ReservedInstancesModificationResponse & WithReservedInstancesId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ReservedInstancesModificationResponse & WithReservedInstancesId(const char *value)
ReservedInstancesModificationResponse & WithTargetConfiguration(ReservedInstancesConfiguration &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
ReservedInstancesModificationResponse & WithTargetConfiguration(const ReservedInstancesConfiguration &value)
JSON (JavaScript Object Notation).