/** * 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 SageMaker { namespace Model { /** */ class CreateDeviceFleetRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API CreateDeviceFleetRequest(); // 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 "CreateDeviceFleet"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the fleet that the device belongs to.

*/ inline const Aws::String& GetDeviceFleetName() const{ return m_deviceFleetName; } /** *

The name of the fleet that the device belongs to.

*/ inline bool DeviceFleetNameHasBeenSet() const { return m_deviceFleetNameHasBeenSet; } /** *

The name of the fleet that the device belongs to.

*/ inline void SetDeviceFleetName(const Aws::String& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = value; } /** *

The name of the fleet that the device belongs to.

*/ inline void SetDeviceFleetName(Aws::String&& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = std::move(value); } /** *

The name of the fleet that the device belongs to.

*/ inline void SetDeviceFleetName(const char* value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName.assign(value); } /** *

The name of the fleet that the device belongs to.

*/ inline CreateDeviceFleetRequest& WithDeviceFleetName(const Aws::String& value) { SetDeviceFleetName(value); return *this;} /** *

The name of the fleet that the device belongs to.

*/ inline CreateDeviceFleetRequest& WithDeviceFleetName(Aws::String&& value) { SetDeviceFleetName(std::move(value)); return *this;} /** *

The name of the fleet that the device belongs to.

*/ inline CreateDeviceFleetRequest& WithDeviceFleetName(const char* value) { SetDeviceFleetName(value); return *this;} /** *

The Amazon Resource Name (ARN) that has access to Amazon Web Services * Internet of Things (IoT).

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) that has access to Amazon Web Services * Internet of Things (IoT).

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) that has access to Amazon Web Services * Internet of Things (IoT).

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) that has access to Amazon Web Services * Internet of Things (IoT).

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) that has access to Amazon Web Services * Internet of Things (IoT).

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) that has access to Amazon Web Services * Internet of Things (IoT).

*/ inline CreateDeviceFleetRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that has access to Amazon Web Services * Internet of Things (IoT).

*/ inline CreateDeviceFleetRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that has access to Amazon Web Services * Internet of Things (IoT).

*/ inline CreateDeviceFleetRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

A description of the fleet.

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

A description of the fleet.

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

A description of the fleet.

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

A description of the fleet.

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

A description of the fleet.

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

A description of the fleet.

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

A description of the fleet.

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

A description of the fleet.

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

The output configuration for storing sample data collected by the fleet.

*/ inline const EdgeOutputConfig& GetOutputConfig() const{ return m_outputConfig; } /** *

The output configuration for storing sample data collected by the fleet.

*/ inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; } /** *

The output configuration for storing sample data collected by the fleet.

*/ inline void SetOutputConfig(const EdgeOutputConfig& value) { m_outputConfigHasBeenSet = true; m_outputConfig = value; } /** *

The output configuration for storing sample data collected by the fleet.

*/ inline void SetOutputConfig(EdgeOutputConfig&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::move(value); } /** *

The output configuration for storing sample data collected by the fleet.

*/ inline CreateDeviceFleetRequest& WithOutputConfig(const EdgeOutputConfig& value) { SetOutputConfig(value); return *this;} /** *

The output configuration for storing sample data collected by the fleet.

*/ inline CreateDeviceFleetRequest& WithOutputConfig(EdgeOutputConfig&& value) { SetOutputConfig(std::move(value)); return *this;} /** *

Creates tags for the specified fleet.

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

Creates tags for the specified fleet.

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

Creates tags for the specified fleet.

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

Creates tags for the specified fleet.

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

Creates tags for the specified fleet.

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

Creates tags for the specified fleet.

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

Creates tags for the specified fleet.

*/ inline CreateDeviceFleetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Creates tags for the specified fleet.

*/ inline CreateDeviceFleetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Whether to create an Amazon Web Services IoT Role Alias during device fleet * creation. The name of the role alias generated will match this pattern: * "SageMakerEdge-{DeviceFleetName}".

For example, if your device fleet is * called "demo-fleet", the name of the role alias will be * "SageMakerEdge-demo-fleet".

*/ inline bool GetEnableIotRoleAlias() const{ return m_enableIotRoleAlias; } /** *

Whether to create an Amazon Web Services IoT Role Alias during device fleet * creation. The name of the role alias generated will match this pattern: * "SageMakerEdge-{DeviceFleetName}".

For example, if your device fleet is * called "demo-fleet", the name of the role alias will be * "SageMakerEdge-demo-fleet".

*/ inline bool EnableIotRoleAliasHasBeenSet() const { return m_enableIotRoleAliasHasBeenSet; } /** *

Whether to create an Amazon Web Services IoT Role Alias during device fleet * creation. The name of the role alias generated will match this pattern: * "SageMakerEdge-{DeviceFleetName}".

For example, if your device fleet is * called "demo-fleet", the name of the role alias will be * "SageMakerEdge-demo-fleet".

*/ inline void SetEnableIotRoleAlias(bool value) { m_enableIotRoleAliasHasBeenSet = true; m_enableIotRoleAlias = value; } /** *

Whether to create an Amazon Web Services IoT Role Alias during device fleet * creation. The name of the role alias generated will match this pattern: * "SageMakerEdge-{DeviceFleetName}".

For example, if your device fleet is * called "demo-fleet", the name of the role alias will be * "SageMakerEdge-demo-fleet".

*/ inline CreateDeviceFleetRequest& WithEnableIotRoleAlias(bool value) { SetEnableIotRoleAlias(value); return *this;} private: Aws::String m_deviceFleetName; bool m_deviceFleetNameHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; EdgeOutputConfig m_outputConfig; bool m_outputConfigHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; bool m_enableIotRoleAlias; bool m_enableIotRoleAliasHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws