/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppStream { namespace Model { /** *

Specifies an entitlement. Entitlements control access to specific * applications within a stack, based on user attributes. Entitlements apply to * SAML 2.0 federated user identities. Amazon AppStream 2.0 user pool and streaming * URL users are entitled to all applications in a stack. Entitlements don't apply * to the desktop stream view application, or to applications managed by a dynamic * app provider using the Dynamic Application Framework.

See Also:

* AWS * API Reference

*/ class Entitlement { public: AWS_APPSTREAM_API Entitlement(); AWS_APPSTREAM_API Entitlement(Aws::Utils::Json::JsonView jsonValue); AWS_APPSTREAM_API Entitlement& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the entitlement.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the entitlement.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the entitlement.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the entitlement.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the entitlement.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the entitlement.

*/ inline Entitlement& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the entitlement.

*/ inline Entitlement& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the entitlement.

*/ inline Entitlement& WithName(const char* value) { SetName(value); return *this;} /** *

The name of the stack with which the entitlement is associated.

*/ inline const Aws::String& GetStackName() const{ return m_stackName; } /** *

The name of the stack with which the entitlement is associated.

*/ inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; } /** *

The name of the stack with which the entitlement is associated.

*/ inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; } /** *

The name of the stack with which the entitlement is associated.

*/ inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); } /** *

The name of the stack with which the entitlement is associated.

*/ inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); } /** *

The name of the stack with which the entitlement is associated.

*/ inline Entitlement& WithStackName(const Aws::String& value) { SetStackName(value); return *this;} /** *

The name of the stack with which the entitlement is associated.

*/ inline Entitlement& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;} /** *

The name of the stack with which the entitlement is associated.

*/ inline Entitlement& WithStackName(const char* value) { SetStackName(value); return *this;} /** *

The description of the entitlement.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the entitlement.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the entitlement.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the entitlement.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the entitlement.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the entitlement.

*/ inline Entitlement& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the entitlement.

*/ inline Entitlement& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the entitlement.

*/ inline Entitlement& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Specifies whether all or selected apps are entitled.

*/ inline const AppVisibility& GetAppVisibility() const{ return m_appVisibility; } /** *

Specifies whether all or selected apps are entitled.

*/ inline bool AppVisibilityHasBeenSet() const { return m_appVisibilityHasBeenSet; } /** *

Specifies whether all or selected apps are entitled.

*/ inline void SetAppVisibility(const AppVisibility& value) { m_appVisibilityHasBeenSet = true; m_appVisibility = value; } /** *

Specifies whether all or selected apps are entitled.

*/ inline void SetAppVisibility(AppVisibility&& value) { m_appVisibilityHasBeenSet = true; m_appVisibility = std::move(value); } /** *

Specifies whether all or selected apps are entitled.

*/ inline Entitlement& WithAppVisibility(const AppVisibility& value) { SetAppVisibility(value); return *this;} /** *

Specifies whether all or selected apps are entitled.

*/ inline Entitlement& WithAppVisibility(AppVisibility&& value) { SetAppVisibility(std::move(value)); return *this;} /** *

The attributes of the entitlement.

*/ inline const Aws::Vector& GetAttributes() const{ return m_attributes; } /** *

The attributes of the entitlement.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

The attributes of the entitlement.

*/ inline void SetAttributes(const Aws::Vector& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

The attributes of the entitlement.

*/ inline void SetAttributes(Aws::Vector&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

The attributes of the entitlement.

*/ inline Entitlement& WithAttributes(const Aws::Vector& value) { SetAttributes(value); return *this;} /** *

The attributes of the entitlement.

*/ inline Entitlement& WithAttributes(Aws::Vector&& value) { SetAttributes(std::move(value)); return *this;} /** *

The attributes of the entitlement.

*/ inline Entitlement& AddAttributes(const EntitlementAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; } /** *

The attributes of the entitlement.

*/ inline Entitlement& AddAttributes(EntitlementAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; } /** *

The time when the entitlement was created.

*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *

The time when the entitlement was created.

*/ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *

The time when the entitlement was created.

*/ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** *

The time when the entitlement was created.

*/ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** *

The time when the entitlement was created.

*/ inline Entitlement& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *

The time when the entitlement was created.

*/ inline Entitlement& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** *

The time when the entitlement was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The time when the entitlement was last modified.

*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

The time when the entitlement was last modified.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *

The time when the entitlement was last modified.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *

The time when the entitlement was last modified.

*/ inline Entitlement& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

The time when the entitlement was last modified.

*/ inline Entitlement& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_stackName; bool m_stackNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; AppVisibility m_appVisibility; bool m_appVisibilityHasBeenSet = false; Aws::Vector m_attributes; bool m_attributesHasBeenSet = false; Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; }; } // namespace Model } // namespace AppStream } // namespace Aws