AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ElasticInferenceAccelerator.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API ElasticInferenceAccelerator() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
44 inline const Aws::String& GetType() const { return m_type; }
45 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
46 template <typename TypeT = Aws::String>
47 void SetType(TypeT&& value) {
48 m_typeHasBeenSet = true;
49 m_type = std::forward<TypeT>(value);
50 }
51 template <typename TypeT = Aws::String>
53 SetType(std::forward<TypeT>(value));
54 return *this;
55 }
57
59
63 inline int GetCount() const { return m_count; }
64 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
65 inline void SetCount(int value) {
66 m_countHasBeenSet = true;
67 m_count = value;
68 }
70 SetCount(value);
71 return *this;
72 }
74 private:
75 Aws::String m_type;
76
77 int m_count{0};
78 bool m_typeHasBeenSet = false;
79 bool m_countHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace EC2
84} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ElasticInferenceAccelerator & WithType(TypeT &&value)
AWS_EC2_API ElasticInferenceAccelerator(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ElasticInferenceAccelerator & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ElasticInferenceAccelerator & WithCount(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API ElasticInferenceAccelerator()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream