AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Entitlement.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appstream/model/AppVisibility.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/appstream/model/EntitlementAttribute.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AppStream
26{
27namespace Model
28{
29
42 {
43 public:
44 AWS_APPSTREAM_API Entitlement();
45 AWS_APPSTREAM_API Entitlement(Aws::Utils::Json::JsonView jsonValue);
46 AWS_APPSTREAM_API Entitlement& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetName() const{ return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
59 inline Entitlement& WithName(const Aws::String& value) { SetName(value); return *this;}
60 inline Entitlement& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
61 inline Entitlement& WithName(const char* value) { SetName(value); return *this;}
63
65
68 inline const Aws::String& GetStackName() const{ return m_stackName; }
69 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
70 inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
71 inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); }
72 inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
73 inline Entitlement& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
74 inline Entitlement& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;}
75 inline Entitlement& WithStackName(const char* value) { SetStackName(value); return *this;}
77
79
82 inline const Aws::String& GetDescription() const{ return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
85 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
86 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
87 inline Entitlement& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
88 inline Entitlement& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
89 inline Entitlement& WithDescription(const char* value) { SetDescription(value); return *this;}
91
93
96 inline const AppVisibility& GetAppVisibility() const{ return m_appVisibility; }
97 inline bool AppVisibilityHasBeenSet() const { return m_appVisibilityHasBeenSet; }
98 inline void SetAppVisibility(const AppVisibility& value) { m_appVisibilityHasBeenSet = true; m_appVisibility = value; }
99 inline void SetAppVisibility(AppVisibility&& value) { m_appVisibilityHasBeenSet = true; m_appVisibility = std::move(value); }
100 inline Entitlement& WithAppVisibility(const AppVisibility& value) { SetAppVisibility(value); return *this;}
101 inline Entitlement& WithAppVisibility(AppVisibility&& value) { SetAppVisibility(std::move(value)); return *this;}
103
105
108 inline const Aws::Vector<EntitlementAttribute>& GetAttributes() const{ return m_attributes; }
109 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
110 inline void SetAttributes(const Aws::Vector<EntitlementAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
111 inline void SetAttributes(Aws::Vector<EntitlementAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
112 inline Entitlement& WithAttributes(const Aws::Vector<EntitlementAttribute>& value) { SetAttributes(value); return *this;}
113 inline Entitlement& WithAttributes(Aws::Vector<EntitlementAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
114 inline Entitlement& AddAttributes(const EntitlementAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
115 inline Entitlement& AddAttributes(EntitlementAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
117
119
122 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
123 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
124 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
125 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
126 inline Entitlement& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
127 inline Entitlement& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
129
131
134 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
135 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
136 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
137 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
138 inline Entitlement& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
139 inline Entitlement& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
141 private:
142
143 Aws::String m_name;
144 bool m_nameHasBeenSet = false;
145
146 Aws::String m_stackName;
147 bool m_stackNameHasBeenSet = false;
148
149 Aws::String m_description;
150 bool m_descriptionHasBeenSet = false;
151
152 AppVisibility m_appVisibility;
153 bool m_appVisibilityHasBeenSet = false;
154
156 bool m_attributesHasBeenSet = false;
157
158 Aws::Utils::DateTime m_createdTime;
159 bool m_createdTimeHasBeenSet = false;
160
161 Aws::Utils::DateTime m_lastModifiedTime;
162 bool m_lastModifiedTimeHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace AppStream
167} // namespace Aws
Entitlement & WithLastModifiedTime(Aws::Utils::DateTime &&value)
const AppVisibility & GetAppVisibility() const
Definition Entitlement.h:96
const Aws::Vector< EntitlementAttribute > & GetAttributes() const
void SetAttributes(Aws::Vector< EntitlementAttribute > &&value)
void SetCreatedTime(const Aws::Utils::DateTime &value)
void SetStackName(const Aws::String &value)
Definition Entitlement.h:70
Entitlement & WithCreatedTime(Aws::Utils::DateTime &&value)
Entitlement & WithDescription(const Aws::String &value)
Definition Entitlement.h:87
void SetStackName(Aws::String &&value)
Definition Entitlement.h:71
const Aws::String & GetName() const
Definition Entitlement.h:54
Entitlement & WithStackName(Aws::String &&value)
Definition Entitlement.h:74
Entitlement & AddAttributes(EntitlementAttribute &&value)
Entitlement & WithName(const Aws::String &value)
Definition Entitlement.h:59
void SetName(const char *value)
Definition Entitlement.h:58
Entitlement & AddAttributes(const EntitlementAttribute &value)
void SetDescription(const Aws::String &value)
Definition Entitlement.h:84
Entitlement & WithLastModifiedTime(const Aws::Utils::DateTime &value)
const Aws::String & GetStackName() const
Definition Entitlement.h:68
Entitlement & WithStackName(const char *value)
Definition Entitlement.h:75
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
Entitlement & WithDescription(const char *value)
Definition Entitlement.h:89
void SetAppVisibility(const AppVisibility &value)
Definition Entitlement.h:98
AWS_APPSTREAM_API Entitlement & operator=(Aws::Utils::Json::JsonView jsonValue)
Entitlement & WithName(const char *value)
Definition Entitlement.h:61
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Entitlement & WithCreatedTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreatedTime() const
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Entitlement & WithAttributes(Aws::Vector< EntitlementAttribute > &&value)
AWS_APPSTREAM_API Entitlement(Aws::Utils::Json::JsonView jsonValue)
void SetAttributes(const Aws::Vector< EntitlementAttribute > &value)
void SetName(Aws::String &&value)
Definition Entitlement.h:57
void SetCreatedTime(Aws::Utils::DateTime &&value)
void SetName(const Aws::String &value)
Definition Entitlement.h:56
Entitlement & WithStackName(const Aws::String &value)
Definition Entitlement.h:73
Entitlement & WithName(Aws::String &&value)
Definition Entitlement.h:60
void SetStackName(const char *value)
Definition Entitlement.h:72
Entitlement & WithDescription(Aws::String &&value)
Definition Entitlement.h:88
void SetDescription(Aws::String &&value)
Definition Entitlement.h:85
void SetDescription(const char *value)
Definition Entitlement.h:86
Entitlement & WithAppVisibility(AppVisibility &&value)
void SetAppVisibility(AppVisibility &&value)
Definition Entitlement.h:99
const Aws::String & GetDescription() const
Definition Entitlement.h:82
Entitlement & WithAttributes(const Aws::Vector< EntitlementAttribute > &value)
Entitlement & WithAppVisibility(const AppVisibility &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue