AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProductCode.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/ProductCodeValues.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API ProductCode();
36 AWS_EC2_API ProductCode(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_EC2_API ProductCode& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetProductCodeId() const{ return m_productCodeId; }
48 inline bool ProductCodeIdHasBeenSet() const { return m_productCodeIdHasBeenSet; }
49 inline void SetProductCodeId(const Aws::String& value) { m_productCodeIdHasBeenSet = true; m_productCodeId = value; }
50 inline void SetProductCodeId(Aws::String&& value) { m_productCodeIdHasBeenSet = true; m_productCodeId = std::move(value); }
51 inline void SetProductCodeId(const char* value) { m_productCodeIdHasBeenSet = true; m_productCodeId.assign(value); }
52 inline ProductCode& WithProductCodeId(const Aws::String& value) { SetProductCodeId(value); return *this;}
53 inline ProductCode& WithProductCodeId(Aws::String&& value) { SetProductCodeId(std::move(value)); return *this;}
54 inline ProductCode& WithProductCodeId(const char* value) { SetProductCodeId(value); return *this;}
56
58
61 inline const ProductCodeValues& GetProductCodeType() const{ return m_productCodeType; }
62 inline bool ProductCodeTypeHasBeenSet() const { return m_productCodeTypeHasBeenSet; }
63 inline void SetProductCodeType(const ProductCodeValues& value) { m_productCodeTypeHasBeenSet = true; m_productCodeType = value; }
64 inline void SetProductCodeType(ProductCodeValues&& value) { m_productCodeTypeHasBeenSet = true; m_productCodeType = std::move(value); }
65 inline ProductCode& WithProductCodeType(const ProductCodeValues& value) { SetProductCodeType(value); return *this;}
66 inline ProductCode& WithProductCodeType(ProductCodeValues&& value) { SetProductCodeType(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_productCodeId;
71 bool m_productCodeIdHasBeenSet = false;
72
73 ProductCodeValues m_productCodeType;
74 bool m_productCodeTypeHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace EC2
79} // namespace Aws
ProductCode & WithProductCodeType(ProductCodeValues &&value)
Definition ProductCode.h:66
AWS_EC2_API ProductCode & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ProductCode & WithProductCodeId(const Aws::String &value)
Definition ProductCode.h:52
bool ProductCodeIdHasBeenSet() const
Definition ProductCode.h:48
void SetProductCodeId(Aws::String &&value)
Definition ProductCode.h:50
ProductCode & WithProductCodeType(const ProductCodeValues &value)
Definition ProductCode.h:65
void SetProductCodeId(const char *value)
Definition ProductCode.h:51
void SetProductCodeId(const Aws::String &value)
Definition ProductCode.h:49
const ProductCodeValues & GetProductCodeType() const
Definition ProductCode.h:61
void SetProductCodeType(ProductCodeValues &&value)
Definition ProductCode.h:64
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ProductCode & WithProductCodeId(Aws::String &&value)
Definition ProductCode.h:53
void SetProductCodeType(const ProductCodeValues &value)
Definition ProductCode.h:63
bool ProductCodeTypeHasBeenSet() const
Definition ProductCode.h:62
AWS_EC2_API ProductCode(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetProductCodeId() const
Definition ProductCode.h:47
ProductCode & WithProductCodeId(const char *value)
Definition ProductCode.h:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream