/** * 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 #include #include namespace Aws { namespace Snowball { namespace Model { /** */ class UpdateJobRequest : public SnowballRequest { public: AWS_SNOWBALL_API UpdateJobRequest(); // 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 "UpdateJob"; } AWS_SNOWBALL_API Aws::String SerializePayload() const override; AWS_SNOWBALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The job ID of the job that you want to update, for example * JID123e4567-e89b-12d3-a456-426655440000.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

The job ID of the job that you want to update, for example * JID123e4567-e89b-12d3-a456-426655440000.

*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

The job ID of the job that you want to update, for example * JID123e4567-e89b-12d3-a456-426655440000.

*/ inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } /** *

The job ID of the job that you want to update, for example * JID123e4567-e89b-12d3-a456-426655440000.

*/ inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } /** *

The job ID of the job that you want to update, for example * JID123e4567-e89b-12d3-a456-426655440000.

*/ inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } /** *

The job ID of the job that you want to update, for example * JID123e4567-e89b-12d3-a456-426655440000.

*/ inline UpdateJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The job ID of the job that you want to update, for example * JID123e4567-e89b-12d3-a456-426655440000.

*/ inline UpdateJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

The job ID of the job that you want to update, for example * JID123e4567-e89b-12d3-a456-426655440000.

*/ inline UpdateJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

The new role Amazon Resource Name (ARN) that you want to associate with this * job. To create a role ARN, use the CreateRoleIdentity * and Access Management (IAM) API action.

*/ inline const Aws::String& GetRoleARN() const{ return m_roleARN; } /** *

The new role Amazon Resource Name (ARN) that you want to associate with this * job. To create a role ARN, use the CreateRoleIdentity * and Access Management (IAM) API action.

*/ inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; } /** *

The new role Amazon Resource Name (ARN) that you want to associate with this * job. To create a role ARN, use the CreateRoleIdentity * and Access Management (IAM) API action.

*/ inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; } /** *

The new role Amazon Resource Name (ARN) that you want to associate with this * job. To create a role ARN, use the CreateRoleIdentity * and Access Management (IAM) API action.

*/ inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); } /** *

The new role Amazon Resource Name (ARN) that you want to associate with this * job. To create a role ARN, use the CreateRoleIdentity * and Access Management (IAM) API action.

*/ inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); } /** *

The new role Amazon Resource Name (ARN) that you want to associate with this * job. To create a role ARN, use the CreateRoleIdentity * and Access Management (IAM) API action.

*/ inline UpdateJobRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;} /** *

The new role Amazon Resource Name (ARN) that you want to associate with this * job. To create a role ARN, use the CreateRoleIdentity * and Access Management (IAM) API action.

*/ inline UpdateJobRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;} /** *

The new role Amazon Resource Name (ARN) that you want to associate with this * job. To create a role ARN, use the CreateRoleIdentity * and Access Management (IAM) API action.

*/ inline UpdateJobRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;} /** *

The new or updated Notification object.

*/ inline const Notification& GetNotification() const{ return m_notification; } /** *

The new or updated Notification object.

*/ inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; } /** *

The new or updated Notification object.

*/ inline void SetNotification(const Notification& value) { m_notificationHasBeenSet = true; m_notification = value; } /** *

The new or updated Notification object.

*/ inline void SetNotification(Notification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); } /** *

The new or updated Notification object.

*/ inline UpdateJobRequest& WithNotification(const Notification& value) { SetNotification(value); return *this;} /** *

The new or updated Notification object.

*/ inline UpdateJobRequest& WithNotification(Notification&& value) { SetNotification(std::move(value)); return *this;} /** *

The updated JobResource object, or the updated * JobResource object.

*/ inline const JobResource& GetResources() const{ return m_resources; } /** *

The updated JobResource object, or the updated * JobResource object.

*/ inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; } /** *

The updated JobResource object, or the updated * JobResource object.

*/ inline void SetResources(const JobResource& value) { m_resourcesHasBeenSet = true; m_resources = value; } /** *

The updated JobResource object, or the updated * JobResource object.

*/ inline void SetResources(JobResource&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); } /** *

The updated JobResource object, or the updated * JobResource object.

*/ inline UpdateJobRequest& WithResources(const JobResource& value) { SetResources(value); return *this;} /** *

The updated JobResource object, or the updated * JobResource object.

*/ inline UpdateJobRequest& WithResources(JobResource&& value) { SetResources(std::move(value)); return *this;} /** *

Specifies the service or services on the Snow Family device that your * transferred data will be exported from or imported into. Amazon Web Services * Snow Family supports Amazon S3 and NFS (Network File System) and the Amazon Web * Services Storage Gateway service Tape Gateway type.

*/ inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const{ return m_onDeviceServiceConfiguration; } /** *

Specifies the service or services on the Snow Family device that your * transferred data will be exported from or imported into. Amazon Web Services * Snow Family supports Amazon S3 and NFS (Network File System) and the Amazon Web * Services Storage Gateway service Tape Gateway type.

*/ inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; } /** *

Specifies the service or services on the Snow Family device that your * transferred data will be exported from or imported into. Amazon Web Services * Snow Family supports Amazon S3 and NFS (Network File System) and the Amazon Web * Services Storage Gateway service Tape Gateway type.

*/ inline void SetOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = value; } /** *

Specifies the service or services on the Snow Family device that your * transferred data will be exported from or imported into. Amazon Web Services * Snow Family supports Amazon S3 and NFS (Network File System) and the Amazon Web * Services Storage Gateway service Tape Gateway type.

*/ inline void SetOnDeviceServiceConfiguration(OnDeviceServiceConfiguration&& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = std::move(value); } /** *

Specifies the service or services on the Snow Family device that your * transferred data will be exported from or imported into. Amazon Web Services * Snow Family supports Amazon S3 and NFS (Network File System) and the Amazon Web * Services Storage Gateway service Tape Gateway type.

*/ inline UpdateJobRequest& WithOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration& value) { SetOnDeviceServiceConfiguration(value); return *this;} /** *

Specifies the service or services on the Snow Family device that your * transferred data will be exported from or imported into. Amazon Web Services * Snow Family supports Amazon S3 and NFS (Network File System) and the Amazon Web * Services Storage Gateway service Tape Gateway type.

*/ inline UpdateJobRequest& WithOnDeviceServiceConfiguration(OnDeviceServiceConfiguration&& value) { SetOnDeviceServiceConfiguration(std::move(value)); return *this;} /** *

The ID of the updated Address object.

*/ inline const Aws::String& GetAddressId() const{ return m_addressId; } /** *

The ID of the updated Address object.

*/ inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; } /** *

The ID of the updated Address object.

*/ inline void SetAddressId(const Aws::String& value) { m_addressIdHasBeenSet = true; m_addressId = value; } /** *

The ID of the updated Address object.

*/ inline void SetAddressId(Aws::String&& value) { m_addressIdHasBeenSet = true; m_addressId = std::move(value); } /** *

The ID of the updated Address object.

*/ inline void SetAddressId(const char* value) { m_addressIdHasBeenSet = true; m_addressId.assign(value); } /** *

The ID of the updated Address object.

*/ inline UpdateJobRequest& WithAddressId(const Aws::String& value) { SetAddressId(value); return *this;} /** *

The ID of the updated Address object.

*/ inline UpdateJobRequest& WithAddressId(Aws::String&& value) { SetAddressId(std::move(value)); return *this;} /** *

The ID of the updated Address object.

*/ inline UpdateJobRequest& WithAddressId(const char* value) { SetAddressId(value); return *this;} /** *

The updated shipping option value of this job's ShippingDetails * object.

*/ inline const ShippingOption& GetShippingOption() const{ return m_shippingOption; } /** *

The updated shipping option value of this job's ShippingDetails * object.

*/ inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; } /** *

The updated shipping option value of this job's ShippingDetails * object.

*/ inline void SetShippingOption(const ShippingOption& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; } /** *

The updated shipping option value of this job's ShippingDetails * object.

*/ inline void SetShippingOption(ShippingOption&& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = std::move(value); } /** *

The updated shipping option value of this job's ShippingDetails * object.

*/ inline UpdateJobRequest& WithShippingOption(const ShippingOption& value) { SetShippingOption(value); return *this;} /** *

The updated shipping option value of this job's ShippingDetails * object.

*/ inline UpdateJobRequest& WithShippingOption(ShippingOption&& value) { SetShippingOption(std::move(value)); return *this;} /** *

The updated description of this job's JobMetadata object.

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

The updated description of this job's JobMetadata object.

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

The updated description of this job's JobMetadata object.

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

The updated description of this job's JobMetadata object.

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

The updated description of this job's JobMetadata object.

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

The updated description of this job's JobMetadata object.

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

The updated description of this job's JobMetadata object.

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

The updated description of this job's JobMetadata object.

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

The updated SnowballCapacityPreference of this job's * JobMetadata object. The 50 TB Snowballs are only available in the US * regions.

For more information, see * "https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html" * (Snow Family Devices and Capacity) in the Snowcone User Guide or * "https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html" * (Snow Family Devices and Capacity) in the Snowcone User Guide.

*/ inline const SnowballCapacity& GetSnowballCapacityPreference() const{ return m_snowballCapacityPreference; } /** *

The updated SnowballCapacityPreference of this job's * JobMetadata object. The 50 TB Snowballs are only available in the US * regions.

For more information, see * "https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html" * (Snow Family Devices and Capacity) in the Snowcone User Guide or * "https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html" * (Snow Family Devices and Capacity) in the Snowcone User Guide.

*/ inline bool SnowballCapacityPreferenceHasBeenSet() const { return m_snowballCapacityPreferenceHasBeenSet; } /** *

The updated SnowballCapacityPreference of this job's * JobMetadata object. The 50 TB Snowballs are only available in the US * regions.

For more information, see * "https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html" * (Snow Family Devices and Capacity) in the Snowcone User Guide or * "https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html" * (Snow Family Devices and Capacity) in the Snowcone User Guide.

*/ inline void SetSnowballCapacityPreference(const SnowballCapacity& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = value; } /** *

The updated SnowballCapacityPreference of this job's * JobMetadata object. The 50 TB Snowballs are only available in the US * regions.

For more information, see * "https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html" * (Snow Family Devices and Capacity) in the Snowcone User Guide or * "https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html" * (Snow Family Devices and Capacity) in the Snowcone User Guide.

*/ inline void SetSnowballCapacityPreference(SnowballCapacity&& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = std::move(value); } /** *

The updated SnowballCapacityPreference of this job's * JobMetadata object. The 50 TB Snowballs are only available in the US * regions.

For more information, see * "https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html" * (Snow Family Devices and Capacity) in the Snowcone User Guide or * "https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html" * (Snow Family Devices and Capacity) in the Snowcone User Guide.

*/ inline UpdateJobRequest& WithSnowballCapacityPreference(const SnowballCapacity& value) { SetSnowballCapacityPreference(value); return *this;} /** *

The updated SnowballCapacityPreference of this job's * JobMetadata object. The 50 TB Snowballs are only available in the US * regions.

For more information, see * "https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html" * (Snow Family Devices and Capacity) in the Snowcone User Guide or * "https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html" * (Snow Family Devices and Capacity) in the Snowcone User Guide.

*/ inline UpdateJobRequest& WithSnowballCapacityPreference(SnowballCapacity&& value) { SetSnowballCapacityPreference(std::move(value)); return *this;} /** *

The updated ID for the forwarding address for a job. This field is not * supported in most regions.

*/ inline const Aws::String& GetForwardingAddressId() const{ return m_forwardingAddressId; } /** *

The updated ID for the forwarding address for a job. This field is not * supported in most regions.

*/ inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; } /** *

The updated ID for the forwarding address for a job. This field is not * supported in most regions.

*/ inline void SetForwardingAddressId(const Aws::String& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = value; } /** *

The updated ID for the forwarding address for a job. This field is not * supported in most regions.

*/ inline void SetForwardingAddressId(Aws::String&& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = std::move(value); } /** *

The updated ID for the forwarding address for a job. This field is not * supported in most regions.

*/ inline void SetForwardingAddressId(const char* value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId.assign(value); } /** *

The updated ID for the forwarding address for a job. This field is not * supported in most regions.

*/ inline UpdateJobRequest& WithForwardingAddressId(const Aws::String& value) { SetForwardingAddressId(value); return *this;} /** *

The updated ID for the forwarding address for a job. This field is not * supported in most regions.

*/ inline UpdateJobRequest& WithForwardingAddressId(Aws::String&& value) { SetForwardingAddressId(std::move(value)); return *this;} /** *

The updated ID for the forwarding address for a job. This field is not * supported in most regions.

*/ inline UpdateJobRequest& WithForwardingAddressId(const char* value) { SetForwardingAddressId(value); return *this;} inline const PickupDetails& GetPickupDetails() const{ return m_pickupDetails; } inline bool PickupDetailsHasBeenSet() const { return m_pickupDetailsHasBeenSet; } inline void SetPickupDetails(const PickupDetails& value) { m_pickupDetailsHasBeenSet = true; m_pickupDetails = value; } inline void SetPickupDetails(PickupDetails&& value) { m_pickupDetailsHasBeenSet = true; m_pickupDetails = std::move(value); } inline UpdateJobRequest& WithPickupDetails(const PickupDetails& value) { SetPickupDetails(value); return *this;} inline UpdateJobRequest& WithPickupDetails(PickupDetails&& value) { SetPickupDetails(std::move(value)); return *this;} private: Aws::String m_jobId; bool m_jobIdHasBeenSet = false; Aws::String m_roleARN; bool m_roleARNHasBeenSet = false; Notification m_notification; bool m_notificationHasBeenSet = false; JobResource m_resources; bool m_resourcesHasBeenSet = false; OnDeviceServiceConfiguration m_onDeviceServiceConfiguration; bool m_onDeviceServiceConfigurationHasBeenSet = false; Aws::String m_addressId; bool m_addressIdHasBeenSet = false; ShippingOption m_shippingOption; bool m_shippingOptionHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; SnowballCapacity m_snowballCapacityPreference; bool m_snowballCapacityPreferenceHasBeenSet = false; Aws::String m_forwardingAddressId; bool m_forwardingAddressIdHasBeenSet = false; PickupDetails m_pickupDetails; bool m_pickupDetailsHasBeenSet = false; }; } // namespace Model } // namespace Snowball } // namespace Aws