AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EntitlementData.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/license-manager/model/EntitlementDataUnit.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 LicenseManager
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_LICENSEMANAGER_API EntitlementData();
36 AWS_LICENSEMANAGER_API EntitlementData(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LICENSEMANAGER_API EntitlementData& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline EntitlementData& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline EntitlementData& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline EntitlementData& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetValue() const{ return m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
62 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
63 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
64 inline EntitlementData& WithValue(const Aws::String& value) { SetValue(value); return *this;}
65 inline EntitlementData& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
66 inline EntitlementData& WithValue(const char* value) { SetValue(value); return *this;}
68
70
73 inline const EntitlementDataUnit& GetUnit() const{ return m_unit; }
74 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
75 inline void SetUnit(const EntitlementDataUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
76 inline void SetUnit(EntitlementDataUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
77 inline EntitlementData& WithUnit(const EntitlementDataUnit& value) { SetUnit(value); return *this;}
78 inline EntitlementData& WithUnit(EntitlementDataUnit&& value) { SetUnit(std::move(value)); return *this;}
80 private:
81
82 Aws::String m_name;
83 bool m_nameHasBeenSet = false;
84
85 Aws::String m_value;
86 bool m_valueHasBeenSet = false;
87
89 bool m_unitHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace LicenseManager
94} // namespace Aws
EntitlementData & WithUnit(const EntitlementDataUnit &value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUnit(const EntitlementDataUnit &value)
EntitlementData & WithValue(const Aws::String &value)
AWS_LICENSEMANAGER_API EntitlementData(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const Aws::String &value)
EntitlementData & WithValue(const char *value)
AWS_LICENSEMANAGER_API EntitlementData()
EntitlementData & WithUnit(EntitlementDataUnit &&value)
void SetUnit(EntitlementDataUnit &&value)
EntitlementData & WithValue(Aws::String &&value)
AWS_LICENSEMANAGER_API EntitlementData & operator=(Aws::Utils::Json::JsonView jsonValue)
EntitlementData & WithName(const Aws::String &value)
void SetName(const Aws::String &value)
EntitlementData & WithName(Aws::String &&value)
EntitlementData & WithName(const char *value)
const EntitlementDataUnit & GetUnit() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue