AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 Entitlement& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
61
63
66 inline const Aws::String& GetStackName() const { return m_stackName; }
67 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
68 template<typename StackNameT = Aws::String>
69 void SetStackName(StackNameT&& value) { m_stackNameHasBeenSet = true; m_stackName = std::forward<StackNameT>(value); }
70 template<typename StackNameT = Aws::String>
71 Entitlement& WithStackName(StackNameT&& value) { SetStackName(std::forward<StackNameT>(value)); return *this;}
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template<typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
82 template<typename DescriptionT = Aws::String>
83 Entitlement& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
85
87
90 inline AppVisibility GetAppVisibility() const { return m_appVisibility; }
91 inline bool AppVisibilityHasBeenSet() const { return m_appVisibilityHasBeenSet; }
92 inline void SetAppVisibility(AppVisibility value) { m_appVisibilityHasBeenSet = true; m_appVisibility = value; }
93 inline Entitlement& WithAppVisibility(AppVisibility value) { SetAppVisibility(value); return *this;}
95
97
100 inline const Aws::Vector<EntitlementAttribute>& GetAttributes() const { return m_attributes; }
101 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
102 template<typename AttributesT = Aws::Vector<EntitlementAttribute>>
103 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
104 template<typename AttributesT = Aws::Vector<EntitlementAttribute>>
105 Entitlement& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
106 template<typename AttributesT = EntitlementAttribute>
107 Entitlement& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
109
111
114 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
115 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
116 template<typename CreatedTimeT = Aws::Utils::DateTime>
117 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
118 template<typename CreatedTimeT = Aws::Utils::DateTime>
119 Entitlement& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
127 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
128 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
129 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
130 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
131 Entitlement& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
133 private:
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 Aws::String m_stackName;
139 bool m_stackNameHasBeenSet = false;
140
141 Aws::String m_description;
142 bool m_descriptionHasBeenSet = false;
143
144 AppVisibility m_appVisibility{AppVisibility::NOT_SET};
145 bool m_appVisibilityHasBeenSet = false;
146
148 bool m_attributesHasBeenSet = false;
149
150 Aws::Utils::DateTime m_createdTime{};
151 bool m_createdTimeHasBeenSet = false;
152
153 Aws::Utils::DateTime m_lastModifiedTime{};
154 bool m_lastModifiedTimeHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace AppStream
159} // namespace Aws
Entitlement & WithStackName(StackNameT &&value)
Definition Entitlement.h:71
Entitlement & WithName(NameT &&value)
Definition Entitlement.h:59
const Aws::Vector< EntitlementAttribute > & GetAttributes() const
const Aws::String & GetName() const
Definition Entitlement.h:54
void SetDescription(DescriptionT &&value)
Definition Entitlement.h:81
Entitlement & WithAppVisibility(AppVisibility value)
Definition Entitlement.h:93
void SetLastModifiedTime(LastModifiedTimeT &&value)
Entitlement & WithAttributes(AttributesT &&value)
const Aws::String & GetStackName() const
Definition Entitlement.h:66
void SetAttributes(AttributesT &&value)
Entitlement & WithDescription(DescriptionT &&value)
Definition Entitlement.h:83
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetCreatedTime(CreatedTimeT &&value)
AWS_APPSTREAM_API Entitlement & operator=(Aws::Utils::Json::JsonView jsonValue)
Entitlement & WithLastModifiedTime(LastModifiedTimeT &&value)
AppVisibility GetAppVisibility() const
Definition Entitlement.h:90
void SetStackName(StackNameT &&value)
Definition Entitlement.h:69
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_APPSTREAM_API Entitlement()=default
AWS_APPSTREAM_API Entitlement(Aws::Utils::Json::JsonView jsonValue)
Entitlement & WithCreatedTime(CreatedTimeT &&value)
Entitlement & AddAttributes(AttributesT &&value)
void SetAppVisibility(AppVisibility value)
Definition Entitlement.h:92
const Aws::String & GetDescription() const
Definition Entitlement.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue