AWS SDK for C++  0.12.9
AWS SDK for C++
HostProperties.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>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace EC2
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  HostProperties& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
50  inline long GetSockets() const{ return m_sockets; }
51 
55  inline void SetSockets(long value) { m_socketsHasBeenSet = true; m_sockets = value; }
56 
60  inline HostProperties& WithSockets(long value) { SetSockets(value); return *this;}
61 
65  inline long GetCores() const{ return m_cores; }
66 
70  inline void SetCores(long value) { m_coresHasBeenSet = true; m_cores = value; }
71 
75  inline HostProperties& WithCores(long value) { SetCores(value); return *this;}
76 
80  inline long GetTotalVCpus() const{ return m_totalVCpus; }
81 
85  inline void SetTotalVCpus(long value) { m_totalVCpusHasBeenSet = true; m_totalVCpus = value; }
86 
90  inline HostProperties& WithTotalVCpus(long value) { SetTotalVCpus(value); return *this;}
91 
96  inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
97 
102  inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
103 
108  inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
109 
114  inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
115 
120  inline HostProperties& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
121 
126  inline HostProperties& WithInstanceType(Aws::String&& value) { SetInstanceType(value); return *this;}
127 
132  inline HostProperties& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
133 
134  private:
135  long m_sockets;
136  bool m_socketsHasBeenSet;
137  long m_cores;
138  bool m_coresHasBeenSet;
139  long m_totalVCpus;
140  bool m_totalVCpusHasBeenSet;
141  Aws::String m_instanceType;
142  bool m_instanceTypeHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace EC2
147 } // namespace Aws
void SetInstanceType(Aws::String &&value)
void SetInstanceType(const Aws::String &value)
HostProperties & WithCores(long value)
const Aws::String & GetInstanceType() const
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
HostProperties & WithInstanceType(const Aws::String &value)
HostProperties & WithInstanceType(Aws::String &&value)
HostProperties & WithTotalVCpus(long value)
HostProperties & WithSockets(long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetInstanceType(const char *value)
HostProperties & WithInstanceType(const char *value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
JSON (JavaScript Object Notation).