/** * 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 AppStream { namespace Model { /** */ class CreateEntitlementRequest : public AppStreamRequest { public: AWS_APPSTREAM_API CreateEntitlementRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateEntitlement"; } AWS_APPSTREAM_API Aws::String SerializePayload() const override; AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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 CreateEntitlementRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the entitlement.

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

The name of the entitlement.

*/ inline CreateEntitlementRequest& 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 CreateEntitlementRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;} /** *

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

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

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

*/ inline CreateEntitlementRequest& 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 CreateEntitlementRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the entitlement.

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

The description of the entitlement.

*/ inline CreateEntitlementRequest& 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 CreateEntitlementRequest& WithAppVisibility(const AppVisibility& value) { SetAppVisibility(value); return *this;} /** *

Specifies whether all or selected apps are entitled.

*/ inline CreateEntitlementRequest& 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 CreateEntitlementRequest& WithAttributes(const Aws::Vector& value) { SetAttributes(value); return *this;} /** *

The attributes of the entitlement.

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

The attributes of the entitlement.

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

The attributes of the entitlement.

*/ inline CreateEntitlementRequest& AddAttributes(EntitlementAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(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; }; } // namespace Model } // namespace AppStream } // namespace Aws