/** * 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 #include namespace Aws { namespace NimbleStudio { namespace Model { /** */ class CreateLaunchProfileRequest : public NimbleStudioRequest { public: AWS_NIMBLESTUDIO_API CreateLaunchProfileRequest(); // 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 "CreateLaunchProfile"; } 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 CreateLaunchProfileRequest& 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 CreateLaunchProfileRequest& 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 CreateLaunchProfileRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The description.

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

The description.

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

The description.

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

The description.

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

The description.

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

The description.

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

The description.

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

The description.

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

Specifies the IDs of the EC2 subnets where streaming sessions will be * accessible from. These subnets must support the specified instance types.

*/ inline const Aws::Vector& GetEc2SubnetIds() const{ return m_ec2SubnetIds; } /** *

Specifies the IDs of the EC2 subnets where streaming sessions will be * accessible from. These subnets must support the specified instance types.

*/ inline bool Ec2SubnetIdsHasBeenSet() const { return m_ec2SubnetIdsHasBeenSet; } /** *

Specifies the IDs of the EC2 subnets where streaming sessions will be * accessible from. These subnets must support the specified instance types.

*/ inline void SetEc2SubnetIds(const Aws::Vector& value) { m_ec2SubnetIdsHasBeenSet = true; m_ec2SubnetIds = value; } /** *

Specifies the IDs of the EC2 subnets where streaming sessions will be * accessible from. These subnets must support the specified instance types.

*/ inline void SetEc2SubnetIds(Aws::Vector&& value) { m_ec2SubnetIdsHasBeenSet = true; m_ec2SubnetIds = std::move(value); } /** *

Specifies the IDs of the EC2 subnets where streaming sessions will be * accessible from. These subnets must support the specified instance types.

*/ inline CreateLaunchProfileRequest& WithEc2SubnetIds(const Aws::Vector& value) { SetEc2SubnetIds(value); return *this;} /** *

Specifies the IDs of the EC2 subnets where streaming sessions will be * accessible from. These subnets must support the specified instance types.

*/ inline CreateLaunchProfileRequest& WithEc2SubnetIds(Aws::Vector&& value) { SetEc2SubnetIds(std::move(value)); return *this;} /** *

Specifies the IDs of the EC2 subnets where streaming sessions will be * accessible from. These subnets must support the specified instance types.

*/ inline CreateLaunchProfileRequest& AddEc2SubnetIds(const Aws::String& value) { m_ec2SubnetIdsHasBeenSet = true; m_ec2SubnetIds.push_back(value); return *this; } /** *

Specifies the IDs of the EC2 subnets where streaming sessions will be * accessible from. These subnets must support the specified instance types.

*/ inline CreateLaunchProfileRequest& AddEc2SubnetIds(Aws::String&& value) { m_ec2SubnetIdsHasBeenSet = true; m_ec2SubnetIds.push_back(std::move(value)); return *this; } /** *

Specifies the IDs of the EC2 subnets where streaming sessions will be * accessible from. These subnets must support the specified instance types.

*/ inline CreateLaunchProfileRequest& AddEc2SubnetIds(const char* value) { m_ec2SubnetIdsHasBeenSet = true; m_ec2SubnetIds.push_back(value); return *this; } /** *

The version number of the protocol that is used by the launch profile. The * only valid version is "2021-03-31".

*/ inline const Aws::Vector& GetLaunchProfileProtocolVersions() const{ return m_launchProfileProtocolVersions; } /** *

The version number of the protocol that is used by the launch profile. The * only valid version is "2021-03-31".

*/ inline bool LaunchProfileProtocolVersionsHasBeenSet() const { return m_launchProfileProtocolVersionsHasBeenSet; } /** *

The version number of the protocol that is used by the launch profile. The * only valid version is "2021-03-31".

*/ inline void SetLaunchProfileProtocolVersions(const Aws::Vector& value) { m_launchProfileProtocolVersionsHasBeenSet = true; m_launchProfileProtocolVersions = value; } /** *

The version number of the protocol that is used by the launch profile. The * only valid version is "2021-03-31".

*/ inline void SetLaunchProfileProtocolVersions(Aws::Vector&& value) { m_launchProfileProtocolVersionsHasBeenSet = true; m_launchProfileProtocolVersions = std::move(value); } /** *

The version number of the protocol that is used by the launch profile. The * only valid version is "2021-03-31".

*/ inline CreateLaunchProfileRequest& WithLaunchProfileProtocolVersions(const Aws::Vector& value) { SetLaunchProfileProtocolVersions(value); return *this;} /** *

The version number of the protocol that is used by the launch profile. The * only valid version is "2021-03-31".

*/ inline CreateLaunchProfileRequest& WithLaunchProfileProtocolVersions(Aws::Vector&& value) { SetLaunchProfileProtocolVersions(std::move(value)); return *this;} /** *

The version number of the protocol that is used by the launch profile. The * only valid version is "2021-03-31".

*/ inline CreateLaunchProfileRequest& AddLaunchProfileProtocolVersions(const Aws::String& value) { m_launchProfileProtocolVersionsHasBeenSet = true; m_launchProfileProtocolVersions.push_back(value); return *this; } /** *

The version number of the protocol that is used by the launch profile. The * only valid version is "2021-03-31".

*/ inline CreateLaunchProfileRequest& AddLaunchProfileProtocolVersions(Aws::String&& value) { m_launchProfileProtocolVersionsHasBeenSet = true; m_launchProfileProtocolVersions.push_back(std::move(value)); return *this; } /** *

The version number of the protocol that is used by the launch profile. The * only valid version is "2021-03-31".

*/ inline CreateLaunchProfileRequest& AddLaunchProfileProtocolVersions(const char* value) { m_launchProfileProtocolVersionsHasBeenSet = true; m_launchProfileProtocolVersions.push_back(value); return *this; } /** *

The name for the launch profile.

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

The name for the launch profile.

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

The name for the launch profile.

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

The name for the launch profile.

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

The name for the launch profile.

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

The name for the launch profile.

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

The name for the launch profile.

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

The name for the launch profile.

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

A configuration for a streaming session.

*/ inline const StreamConfigurationCreate& GetStreamConfiguration() const{ return m_streamConfiguration; } /** *

A configuration for a streaming session.

*/ inline bool StreamConfigurationHasBeenSet() const { return m_streamConfigurationHasBeenSet; } /** *

A configuration for a streaming session.

*/ inline void SetStreamConfiguration(const StreamConfigurationCreate& value) { m_streamConfigurationHasBeenSet = true; m_streamConfiguration = value; } /** *

A configuration for a streaming session.

*/ inline void SetStreamConfiguration(StreamConfigurationCreate&& value) { m_streamConfigurationHasBeenSet = true; m_streamConfiguration = std::move(value); } /** *

A configuration for a streaming session.

*/ inline CreateLaunchProfileRequest& WithStreamConfiguration(const StreamConfigurationCreate& value) { SetStreamConfiguration(value); return *this;} /** *

A configuration for a streaming session.

*/ inline CreateLaunchProfileRequest& WithStreamConfiguration(StreamConfigurationCreate&& value) { SetStreamConfiguration(std::move(value)); return *this;} /** *

Unique identifiers for a collection of studio components that can be used * with this launch profile.

*/ inline const Aws::Vector& GetStudioComponentIds() const{ return m_studioComponentIds; } /** *

Unique identifiers for a collection of studio components that can be used * with this launch profile.

*/ inline bool StudioComponentIdsHasBeenSet() const { return m_studioComponentIdsHasBeenSet; } /** *

Unique identifiers for a collection of studio components that can be used * with this launch profile.

*/ inline void SetStudioComponentIds(const Aws::Vector& value) { m_studioComponentIdsHasBeenSet = true; m_studioComponentIds = value; } /** *

Unique identifiers for a collection of studio components that can be used * with this launch profile.

*/ inline void SetStudioComponentIds(Aws::Vector&& value) { m_studioComponentIdsHasBeenSet = true; m_studioComponentIds = std::move(value); } /** *

Unique identifiers for a collection of studio components that can be used * with this launch profile.

*/ inline CreateLaunchProfileRequest& WithStudioComponentIds(const Aws::Vector& value) { SetStudioComponentIds(value); return *this;} /** *

Unique identifiers for a collection of studio components that can be used * with this launch profile.

*/ inline CreateLaunchProfileRequest& WithStudioComponentIds(Aws::Vector&& value) { SetStudioComponentIds(std::move(value)); return *this;} /** *

Unique identifiers for a collection of studio components that can be used * with this launch profile.

*/ inline CreateLaunchProfileRequest& AddStudioComponentIds(const Aws::String& value) { m_studioComponentIdsHasBeenSet = true; m_studioComponentIds.push_back(value); return *this; } /** *

Unique identifiers for a collection of studio components that can be used * with this launch profile.

*/ inline CreateLaunchProfileRequest& AddStudioComponentIds(Aws::String&& value) { m_studioComponentIdsHasBeenSet = true; m_studioComponentIds.push_back(std::move(value)); return *this; } /** *

Unique identifiers for a collection of studio components that can be used * with this launch profile.

*/ inline CreateLaunchProfileRequest& AddStudioComponentIds(const char* value) { m_studioComponentIdsHasBeenSet = true; m_studioComponentIds.push_back(value); return *this; } /** *

The studio ID.

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

The studio ID.

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

The studio ID.

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

The studio ID.

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

The studio ID.

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

The studio ID.

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

The studio ID.

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

The studio ID.

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

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline CreateLaunchProfileRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline CreateLaunchProfileRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline CreateLaunchProfileRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline CreateLaunchProfileRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline CreateLaunchProfileRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline CreateLaunchProfileRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline CreateLaunchProfileRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline CreateLaunchProfileRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline CreateLaunchProfileRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_ec2SubnetIds; bool m_ec2SubnetIdsHasBeenSet = false; Aws::Vector m_launchProfileProtocolVersions; bool m_launchProfileProtocolVersionsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; StreamConfigurationCreate m_streamConfiguration; bool m_streamConfigurationHasBeenSet = false; Aws::Vector m_studioComponentIds; bool m_studioComponentIdsHasBeenSet = false; Aws::String m_studioId; bool m_studioIdHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace NimbleStudio } // namespace Aws