/** * 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 CreateStreamingURLRequest : public AppStreamRequest { public: AWS_APPSTREAM_API CreateStreamingURLRequest(); // 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 "CreateStreamingURL"; } 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 CreateStreamingURLRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;} /** *

The name of the stack.

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

The name of the stack.

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

The name of the fleet.

*/ inline const Aws::String& GetFleetName() const{ return m_fleetName; } /** *

The name of the fleet.

*/ inline bool FleetNameHasBeenSet() const { return m_fleetNameHasBeenSet; } /** *

The name of the fleet.

*/ inline void SetFleetName(const Aws::String& value) { m_fleetNameHasBeenSet = true; m_fleetName = value; } /** *

The name of the fleet.

*/ inline void SetFleetName(Aws::String&& value) { m_fleetNameHasBeenSet = true; m_fleetName = std::move(value); } /** *

The name of the fleet.

*/ inline void SetFleetName(const char* value) { m_fleetNameHasBeenSet = true; m_fleetName.assign(value); } /** *

The name of the fleet.

*/ inline CreateStreamingURLRequest& WithFleetName(const Aws::String& value) { SetFleetName(value); return *this;} /** *

The name of the fleet.

*/ inline CreateStreamingURLRequest& WithFleetName(Aws::String&& value) { SetFleetName(std::move(value)); return *this;} /** *

The name of the fleet.

*/ inline CreateStreamingURLRequest& WithFleetName(const char* value) { SetFleetName(value); return *this;} /** *

The identifier of the user.

*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *

The identifier of the user.

*/ inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; } /** *

The identifier of the user.

*/ inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; } /** *

The identifier of the user.

*/ inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); } /** *

The identifier of the user.

*/ inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); } /** *

The identifier of the user.

*/ inline CreateStreamingURLRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *

The identifier of the user.

*/ inline CreateStreamingURLRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *

The identifier of the user.

*/ inline CreateStreamingURLRequest& WithUserId(const char* value) { SetUserId(value); return *this;} /** *

The name of the application to launch after the session starts. This is the * name that you specified as Name in the Image Assistant. If your fleet is * enabled for the Desktop stream view, you can also choose to launch * directly to the operating system desktop. To do so, specify Desktop.

*/ inline const Aws::String& GetApplicationId() const{ return m_applicationId; } /** *

The name of the application to launch after the session starts. This is the * name that you specified as Name in the Image Assistant. If your fleet is * enabled for the Desktop stream view, you can also choose to launch * directly to the operating system desktop. To do so, specify Desktop.

*/ inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } /** *

The name of the application to launch after the session starts. This is the * name that you specified as Name in the Image Assistant. If your fleet is * enabled for the Desktop stream view, you can also choose to launch * directly to the operating system desktop. To do so, specify Desktop.

*/ inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } /** *

The name of the application to launch after the session starts. This is the * name that you specified as Name in the Image Assistant. If your fleet is * enabled for the Desktop stream view, you can also choose to launch * directly to the operating system desktop. To do so, specify Desktop.

*/ inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } /** *

The name of the application to launch after the session starts. This is the * name that you specified as Name in the Image Assistant. If your fleet is * enabled for the Desktop stream view, you can also choose to launch * directly to the operating system desktop. To do so, specify Desktop.

*/ inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } /** *

The name of the application to launch after the session starts. This is the * name that you specified as Name in the Image Assistant. If your fleet is * enabled for the Desktop stream view, you can also choose to launch * directly to the operating system desktop. To do so, specify Desktop.

*/ inline CreateStreamingURLRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *

The name of the application to launch after the session starts. This is the * name that you specified as Name in the Image Assistant. If your fleet is * enabled for the Desktop stream view, you can also choose to launch * directly to the operating system desktop. To do so, specify Desktop.

*/ inline CreateStreamingURLRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} /** *

The name of the application to launch after the session starts. This is the * name that you specified as Name in the Image Assistant. If your fleet is * enabled for the Desktop stream view, you can also choose to launch * directly to the operating system desktop. To do so, specify Desktop.

*/ inline CreateStreamingURLRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} /** *

The time that the streaming URL will be valid, in seconds. Specify a value * between 1 and 604800 seconds. The default is 60 seconds.

*/ inline long long GetValidity() const{ return m_validity; } /** *

The time that the streaming URL will be valid, in seconds. Specify a value * between 1 and 604800 seconds. The default is 60 seconds.

*/ inline bool ValidityHasBeenSet() const { return m_validityHasBeenSet; } /** *

The time that the streaming URL will be valid, in seconds. Specify a value * between 1 and 604800 seconds. The default is 60 seconds.

*/ inline void SetValidity(long long value) { m_validityHasBeenSet = true; m_validity = value; } /** *

The time that the streaming URL will be valid, in seconds. Specify a value * between 1 and 604800 seconds. The default is 60 seconds.

*/ inline CreateStreamingURLRequest& WithValidity(long long value) { SetValidity(value); return *this;} /** *

The session context. For more information, see Session * Context in the Amazon AppStream 2.0 Administration Guide.

*/ inline const Aws::String& GetSessionContext() const{ return m_sessionContext; } /** *

The session context. For more information, see Session * Context in the Amazon AppStream 2.0 Administration Guide.

*/ inline bool SessionContextHasBeenSet() const { return m_sessionContextHasBeenSet; } /** *

The session context. For more information, see Session * Context in the Amazon AppStream 2.0 Administration Guide.

*/ inline void SetSessionContext(const Aws::String& value) { m_sessionContextHasBeenSet = true; m_sessionContext = value; } /** *

The session context. For more information, see Session * Context in the Amazon AppStream 2.0 Administration Guide.

*/ inline void SetSessionContext(Aws::String&& value) { m_sessionContextHasBeenSet = true; m_sessionContext = std::move(value); } /** *

The session context. For more information, see Session * Context in the Amazon AppStream 2.0 Administration Guide.

*/ inline void SetSessionContext(const char* value) { m_sessionContextHasBeenSet = true; m_sessionContext.assign(value); } /** *

The session context. For more information, see Session * Context in the Amazon AppStream 2.0 Administration Guide.

*/ inline CreateStreamingURLRequest& WithSessionContext(const Aws::String& value) { SetSessionContext(value); return *this;} /** *

The session context. For more information, see Session * Context in the Amazon AppStream 2.0 Administration Guide.

*/ inline CreateStreamingURLRequest& WithSessionContext(Aws::String&& value) { SetSessionContext(std::move(value)); return *this;} /** *

The session context. For more information, see Session * Context in the Amazon AppStream 2.0 Administration Guide.

*/ inline CreateStreamingURLRequest& WithSessionContext(const char* value) { SetSessionContext(value); return *this;} private: Aws::String m_stackName; bool m_stackNameHasBeenSet = false; Aws::String m_fleetName; bool m_fleetNameHasBeenSet = false; Aws::String m_userId; bool m_userIdHasBeenSet = false; Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; long long m_validity; bool m_validityHasBeenSet = false; Aws::String m_sessionContext; bool m_sessionContextHasBeenSet = false; }; } // namespace Model } // namespace AppStream } // namespace Aws