AWS SDK for C++  0.14.3
AWS SDK for C++
ModifyHostsRequest.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>
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::Vector<Aws::String>& GetHostIds() const{ return m_hostIds; }
42 
46  inline void SetHostIds(const Aws::Vector<Aws::String>& value) { m_hostIdsHasBeenSet = true; m_hostIds = value; }
47 
51  inline void SetHostIds(Aws::Vector<Aws::String>&& value) { m_hostIdsHasBeenSet = true; m_hostIds = value; }
52 
56  inline ModifyHostsRequest& WithHostIds(const Aws::Vector<Aws::String>& value) { SetHostIds(value); return *this;}
57 
61  inline ModifyHostsRequest& WithHostIds(Aws::Vector<Aws::String>&& value) { SetHostIds(value); return *this;}
62 
66  inline ModifyHostsRequest& AddHostIds(const Aws::String& value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(value); return *this; }
67 
71  inline ModifyHostsRequest& AddHostIds(Aws::String&& value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(value); return *this; }
72 
76  inline ModifyHostsRequest& AddHostIds(const char* value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(value); return *this; }
77 
81  inline const AutoPlacement& GetAutoPlacement() const{ return m_autoPlacement; }
82 
86  inline void SetAutoPlacement(const AutoPlacement& value) { m_autoPlacementHasBeenSet = true; m_autoPlacement = value; }
87 
91  inline void SetAutoPlacement(AutoPlacement&& value) { m_autoPlacementHasBeenSet = true; m_autoPlacement = value; }
92 
96  inline ModifyHostsRequest& WithAutoPlacement(const AutoPlacement& value) { SetAutoPlacement(value); return *this;}
97 
101  inline ModifyHostsRequest& WithAutoPlacement(AutoPlacement&& value) { SetAutoPlacement(value); return *this;}
102 
103  private:
104  Aws::Vector<Aws::String> m_hostIds;
105  bool m_hostIdsHasBeenSet;
106  AutoPlacement m_autoPlacement;
107  bool m_autoPlacementHasBeenSet;
108  };
109 
110 } // namespace Model
111 } // namespace EC2
112 } // namespace Aws
ModifyHostsRequest & WithHostIds(const Aws::Vector< Aws::String > &value)
ModifyHostsRequest & AddHostIds(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< Aws::String > & GetHostIds() const
void SetHostIds(const Aws::Vector< Aws::String > &value)
void SetHostIds(Aws::Vector< Aws::String > &&value)
void SetAutoPlacement(const AutoPlacement &value)
ModifyHostsRequest & WithAutoPlacement(AutoPlacement &&value)
const AutoPlacement & GetAutoPlacement() const
ModifyHostsRequest & WithHostIds(Aws::Vector< Aws::String > &&value)
ModifyHostsRequest & WithAutoPlacement(const AutoPlacement &value)
ModifyHostsRequest & AddHostIds(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyHostsRequest & AddHostIds(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
void SetAutoPlacement(AutoPlacement &&value)
JSON (JavaScript Object Notation).