AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ProductCodeIdT = Aws::String>
50 void SetProductCodeId(ProductCodeIdT&& value) { m_productCodeIdHasBeenSet = true; m_productCodeId = std::forward<ProductCodeIdT>(value); }
51 template<typename ProductCodeIdT = Aws::String>
52 ProductCode& WithProductCodeId(ProductCodeIdT&& value) { SetProductCodeId(std::forward<ProductCodeIdT>(value)); return *this;}
54
56
59 inline ProductCodeValues GetProductCodeType() const { return m_productCodeType; }
60 inline bool ProductCodeTypeHasBeenSet() const { return m_productCodeTypeHasBeenSet; }
61 inline void SetProductCodeType(ProductCodeValues value) { m_productCodeTypeHasBeenSet = true; m_productCodeType = value; }
64 private:
65
66 Aws::String m_productCodeId;
67 bool m_productCodeIdHasBeenSet = false;
68
70 bool m_productCodeTypeHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace EC2
75} // namespace Aws
AWS_EC2_API ProductCode & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ProductCode & WithProductCodeId(ProductCodeIdT &&value)
Definition ProductCode.h:52
bool ProductCodeIdHasBeenSet() const
Definition ProductCode.h:48
ProductCode & WithProductCodeType(ProductCodeValues value)
Definition ProductCode.h:62
void SetProductCodeId(ProductCodeIdT &&value)
Definition ProductCode.h:50
void SetProductCodeType(ProductCodeValues value)
Definition ProductCode.h:61
AWS_EC2_API ProductCode()=default
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
ProductCodeValues GetProductCodeType() const
Definition ProductCode.h:59
bool ProductCodeTypeHasBeenSet() const
Definition ProductCode.h:60
AWS_EC2_API ProductCode(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetProductCodeId() const
Definition ProductCode.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream