AWS SDK for C++  0.14.3
AWS SDK for C++
ModifyInstancePlacementRequest.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>
17 #include <aws/ec2/EC2Request.h>
20 #include <aws/ec2/model/Affinity.h>
21 
22 namespace Aws
23 {
24 namespace EC2
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
41  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
42 
46  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
47 
51  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
52 
56  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
57 
61  inline ModifyInstancePlacementRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
62 
66  inline ModifyInstancePlacementRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
67 
71  inline ModifyInstancePlacementRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
72 
76  inline const HostTenancy& GetTenancy() const{ return m_tenancy; }
77 
81  inline void SetTenancy(const HostTenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
82 
86  inline void SetTenancy(HostTenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
87 
91  inline ModifyInstancePlacementRequest& WithTenancy(const HostTenancy& value) { SetTenancy(value); return *this;}
92 
96  inline ModifyInstancePlacementRequest& WithTenancy(HostTenancy&& value) { SetTenancy(value); return *this;}
97 
101  inline const Affinity& GetAffinity() const{ return m_affinity; }
102 
106  inline void SetAffinity(const Affinity& value) { m_affinityHasBeenSet = true; m_affinity = value; }
107 
111  inline void SetAffinity(Affinity&& value) { m_affinityHasBeenSet = true; m_affinity = value; }
112 
116  inline ModifyInstancePlacementRequest& WithAffinity(const Affinity& value) { SetAffinity(value); return *this;}
117 
121  inline ModifyInstancePlacementRequest& WithAffinity(Affinity&& value) { SetAffinity(value); return *this;}
122 
126  inline const Aws::String& GetHostId() const{ return m_hostId; }
127 
131  inline void SetHostId(const Aws::String& value) { m_hostIdHasBeenSet = true; m_hostId = value; }
132 
136  inline void SetHostId(Aws::String&& value) { m_hostIdHasBeenSet = true; m_hostId = value; }
137 
141  inline void SetHostId(const char* value) { m_hostIdHasBeenSet = true; m_hostId.assign(value); }
142 
146  inline ModifyInstancePlacementRequest& WithHostId(const Aws::String& value) { SetHostId(value); return *this;}
147 
151  inline ModifyInstancePlacementRequest& WithHostId(Aws::String&& value) { SetHostId(value); return *this;}
152 
156  inline ModifyInstancePlacementRequest& WithHostId(const char* value) { SetHostId(value); return *this;}
157 
158  private:
159  Aws::String m_instanceId;
160  bool m_instanceIdHasBeenSet;
161  HostTenancy m_tenancy;
162  bool m_tenancyHasBeenSet;
163  Affinity m_affinity;
164  bool m_affinityHasBeenSet;
165  Aws::String m_hostId;
166  bool m_hostIdHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace EC2
171 } // namespace Aws
ModifyInstancePlacementRequest & WithAffinity(Affinity &&value)
ModifyInstancePlacementRequest & WithHostId(const Aws::String &value)
ModifyInstancePlacementRequest & WithHostId(Aws::String &&value)
ModifyInstancePlacementRequest & WithInstanceId(const Aws::String &value)
ModifyInstancePlacementRequest & WithTenancy(const HostTenancy &value)
ModifyInstancePlacementRequest & WithHostId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyInstancePlacementRequest & WithTenancy(HostTenancy &&value)
ModifyInstancePlacementRequest & WithAffinity(const Affinity &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
ModifyInstancePlacementRequest & WithInstanceId(const char *value)
JSON (JavaScript Object Notation).
ModifyInstancePlacementRequest & WithInstanceId(Aws::String &&value)