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/drs/Drs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/drs/model/ProductCodeMode.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace drs
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DRS_API ProductCode();
40
41
43
46 inline const Aws::String& GetProductCodeId() const{ return m_productCodeId; }
47 inline bool ProductCodeIdHasBeenSet() const { return m_productCodeIdHasBeenSet; }
48 inline void SetProductCodeId(const Aws::String& value) { m_productCodeIdHasBeenSet = true; m_productCodeId = value; }
49 inline void SetProductCodeId(Aws::String&& value) { m_productCodeIdHasBeenSet = true; m_productCodeId = std::move(value); }
50 inline void SetProductCodeId(const char* value) { m_productCodeIdHasBeenSet = true; m_productCodeId.assign(value); }
51 inline ProductCode& WithProductCodeId(const Aws::String& value) { SetProductCodeId(value); return *this;}
52 inline ProductCode& WithProductCodeId(Aws::String&& value) { SetProductCodeId(std::move(value)); return *this;}
53 inline ProductCode& WithProductCodeId(const char* value) { SetProductCodeId(value); return *this;}
55
57
60 inline const ProductCodeMode& GetProductCodeMode() const{ return m_productCodeMode; }
61 inline bool ProductCodeModeHasBeenSet() const { return m_productCodeModeHasBeenSet; }
62 inline void SetProductCodeMode(const ProductCodeMode& value) { m_productCodeModeHasBeenSet = true; m_productCodeMode = value; }
63 inline void SetProductCodeMode(ProductCodeMode&& value) { m_productCodeModeHasBeenSet = true; m_productCodeMode = std::move(value); }
64 inline ProductCode& WithProductCodeMode(const ProductCodeMode& value) { SetProductCodeMode(value); return *this;}
65 inline ProductCode& WithProductCodeMode(ProductCodeMode&& value) { SetProductCodeMode(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_productCodeId;
70 bool m_productCodeIdHasBeenSet = false;
71
72 ProductCodeMode m_productCodeMode;
73 bool m_productCodeModeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace drs
78} // namespace Aws
AWS_DRS_API ProductCode(Aws::Utils::Json::JsonView jsonValue)
void SetProductCodeId(const Aws::String &value)
Definition ProductCode.h:48
void SetProductCodeMode(ProductCodeMode &&value)
Definition ProductCode.h:63
const Aws::String & GetProductCodeId() const
Definition ProductCode.h:46
void SetProductCodeId(Aws::String &&value)
Definition ProductCode.h:49
AWS_DRS_API ProductCode & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetProductCodeMode(const ProductCodeMode &value)
Definition ProductCode.h:62
ProductCode & WithProductCodeMode(const ProductCodeMode &value)
Definition ProductCode.h:64
ProductCode & WithProductCodeId(const char *value)
Definition ProductCode.h:53
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
ProductCode & WithProductCodeId(const Aws::String &value)
Definition ProductCode.h:51
bool ProductCodeModeHasBeenSet() const
Definition ProductCode.h:61
ProductCode & WithProductCodeMode(ProductCodeMode &&value)
Definition ProductCode.h:65
bool ProductCodeIdHasBeenSet() const
Definition ProductCode.h:47
ProductCode & WithProductCodeId(Aws::String &&value)
Definition ProductCode.h:52
const ProductCodeMode & GetProductCodeMode() const
Definition ProductCode.h:60
void SetProductCodeId(const char *value)
Definition ProductCode.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue