/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace AppStream { namespace Model { /** */ class AssociateApplicationToEntitlementRequest : public AppStreamRequest { public: AWS_APPSTREAM_API AssociateApplicationToEntitlementRequest(); // 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 "AssociateApplicationToEntitlement"; } AWS_APPSTREAM_API Aws::String SerializePayload() const override; AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the stack.

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

The name of the stack.

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

The name of the stack.

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

The name of the stack.

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

The name of the stack.

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

The name of the stack.

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

The name of the stack.

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

The name of the stack.

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

The name of the entitlement.

*/ inline const Aws::String& GetEntitlementName() const{ return m_entitlementName; } /** *

The name of the entitlement.

*/ inline bool EntitlementNameHasBeenSet() const { return m_entitlementNameHasBeenSet; } /** *

The name of the entitlement.

*/ inline void SetEntitlementName(const Aws::String& value) { m_entitlementNameHasBeenSet = true; m_entitlementName = value; } /** *

The name of the entitlement.

*/ inline void SetEntitlementName(Aws::String&& value) { m_entitlementNameHasBeenSet = true; m_entitlementName = std::move(value); } /** *

The name of the entitlement.

*/ inline void SetEntitlementName(const char* value) { m_entitlementNameHasBeenSet = true; m_entitlementName.assign(value); } /** *

The name of the entitlement.

*/ inline AssociateApplicationToEntitlementRequest& WithEntitlementName(const Aws::String& value) { SetEntitlementName(value); return *this;} /** *

The name of the entitlement.

*/ inline AssociateApplicationToEntitlementRequest& WithEntitlementName(Aws::String&& value) { SetEntitlementName(std::move(value)); return *this;} /** *

The name of the entitlement.

*/ inline AssociateApplicationToEntitlementRequest& WithEntitlementName(const char* value) { SetEntitlementName(value); return *this;} /** *

The identifier of the application.

*/ inline const Aws::String& GetApplicationIdentifier() const{ return m_applicationIdentifier; } /** *

The identifier of the application.

*/ inline bool ApplicationIdentifierHasBeenSet() const { return m_applicationIdentifierHasBeenSet; } /** *

The identifier of the application.

*/ inline void SetApplicationIdentifier(const Aws::String& value) { m_applicationIdentifierHasBeenSet = true; m_applicationIdentifier = value; } /** *

The identifier of the application.

*/ inline void SetApplicationIdentifier(Aws::String&& value) { m_applicationIdentifierHasBeenSet = true; m_applicationIdentifier = std::move(value); } /** *

The identifier of the application.

*/ inline void SetApplicationIdentifier(const char* value) { m_applicationIdentifierHasBeenSet = true; m_applicationIdentifier.assign(value); } /** *

The identifier of the application.

*/ inline AssociateApplicationToEntitlementRequest& WithApplicationIdentifier(const Aws::String& value) { SetApplicationIdentifier(value); return *this;} /** *

The identifier of the application.

*/ inline AssociateApplicationToEntitlementRequest& WithApplicationIdentifier(Aws::String&& value) { SetApplicationIdentifier(std::move(value)); return *this;} /** *

The identifier of the application.

*/ inline AssociateApplicationToEntitlementRequest& WithApplicationIdentifier(const char* value) { SetApplicationIdentifier(value); return *this;} private: Aws::String m_stackName; bool m_stackNameHasBeenSet = false; Aws::String m_entitlementName; bool m_entitlementNameHasBeenSet = false; Aws::String m_applicationIdentifier; bool m_applicationIdentifierHasBeenSet = false; }; } // namespace Model } // namespace AppStream } // namespace Aws