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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don’t specify a client token, the Amazon Web Services SDK * automatically generates a client token and uses it for the request to ensure * idempotency.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don’t specify a client token, the Amazon Web Services SDK * automatically generates a client token and uses it for the request to ensure * idempotency.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don’t specify a client token, the Amazon Web Services SDK * automatically generates a client token and uses it for the request to ensure * idempotency.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don’t specify a client token, the Amazon Web Services SDK * automatically generates a client token and uses it for the request to ensure * idempotency.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don’t specify a client token, the Amazon Web Services SDK * automatically generates a client token and uses it for the request to ensure * idempotency.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don’t specify a client token, the Amazon Web Services SDK * automatically generates a client token and uses it for the request to ensure * idempotency.

*/ inline StopStreamingSessionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don’t specify a client token, the Amazon Web Services SDK * automatically generates a client token and uses it for the request to ensure * idempotency.

*/ inline StopStreamingSessionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don’t specify a client token, the Amazon Web Services SDK * automatically generates a client token and uses it for the request to ensure * idempotency.

*/ inline StopStreamingSessionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The streaming session ID for the * StopStreamingSessionRequest.

*/ inline const Aws::String& GetSessionId() const{ return m_sessionId; } /** *

The streaming session ID for the * StopStreamingSessionRequest.

*/ inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } /** *

The streaming session ID for the * StopStreamingSessionRequest.

*/ inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } /** *

The streaming session ID for the * StopStreamingSessionRequest.

*/ inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } /** *

The streaming session ID for the * StopStreamingSessionRequest.

*/ inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } /** *

The streaming session ID for the * StopStreamingSessionRequest.

*/ inline StopStreamingSessionRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} /** *

The streaming session ID for the * StopStreamingSessionRequest.

*/ inline StopStreamingSessionRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} /** *

The streaming session ID for the * StopStreamingSessionRequest.

*/ inline StopStreamingSessionRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;} /** *

The studioId for the StopStreamingSessionRequest.

*/ inline const Aws::String& GetStudioId() const{ return m_studioId; } /** *

The studioId for the StopStreamingSessionRequest.

*/ inline bool StudioIdHasBeenSet() const { return m_studioIdHasBeenSet; } /** *

The studioId for the StopStreamingSessionRequest.

*/ inline void SetStudioId(const Aws::String& value) { m_studioIdHasBeenSet = true; m_studioId = value; } /** *

The studioId for the StopStreamingSessionRequest.

*/ inline void SetStudioId(Aws::String&& value) { m_studioIdHasBeenSet = true; m_studioId = std::move(value); } /** *

The studioId for the StopStreamingSessionRequest.

*/ inline void SetStudioId(const char* value) { m_studioIdHasBeenSet = true; m_studioId.assign(value); } /** *

The studioId for the StopStreamingSessionRequest.

*/ inline StopStreamingSessionRequest& WithStudioId(const Aws::String& value) { SetStudioId(value); return *this;} /** *

The studioId for the StopStreamingSessionRequest.

*/ inline StopStreamingSessionRequest& WithStudioId(Aws::String&& value) { SetStudioId(std::move(value)); return *this;} /** *

The studioId for the StopStreamingSessionRequest.

*/ inline StopStreamingSessionRequest& WithStudioId(const char* value) { SetStudioId(value); return *this;} /** *

Adds additional instructions to a streaming session stop action to either * retain the EBS volumes or delete the EBS volumes.

*/ inline const VolumeRetentionMode& GetVolumeRetentionMode() const{ return m_volumeRetentionMode; } /** *

Adds additional instructions to a streaming session stop action to either * retain the EBS volumes or delete the EBS volumes.

*/ inline bool VolumeRetentionModeHasBeenSet() const { return m_volumeRetentionModeHasBeenSet; } /** *

Adds additional instructions to a streaming session stop action to either * retain the EBS volumes or delete the EBS volumes.

*/ inline void SetVolumeRetentionMode(const VolumeRetentionMode& value) { m_volumeRetentionModeHasBeenSet = true; m_volumeRetentionMode = value; } /** *

Adds additional instructions to a streaming session stop action to either * retain the EBS volumes or delete the EBS volumes.

*/ inline void SetVolumeRetentionMode(VolumeRetentionMode&& value) { m_volumeRetentionModeHasBeenSet = true; m_volumeRetentionMode = std::move(value); } /** *

Adds additional instructions to a streaming session stop action to either * retain the EBS volumes or delete the EBS volumes.

*/ inline StopStreamingSessionRequest& WithVolumeRetentionMode(const VolumeRetentionMode& value) { SetVolumeRetentionMode(value); return *this;} /** *

Adds additional instructions to a streaming session stop action to either * retain the EBS volumes or delete the EBS volumes.

*/ inline StopStreamingSessionRequest& WithVolumeRetentionMode(VolumeRetentionMode&& value) { SetVolumeRetentionMode(std::move(value)); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_sessionId; bool m_sessionIdHasBeenSet = false; Aws::String m_studioId; bool m_studioIdHasBeenSet = false; VolumeRetentionMode m_volumeRetentionMode; bool m_volumeRetentionModeHasBeenSet = false; }; } // namespace Model } // namespace NimbleStudio } // namespace Aws