/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace MediaPackage { namespace Model { /** * Configuration parameters used to create a new HarvestJob.

See Also:

* AWS * API Reference

*/ class CreateHarvestJobRequest : public MediaPackageRequest { public: AWS_MEDIAPACKAGE_API CreateHarvestJobRequest(); // 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 "CreateHarvestJob"; } AWS_MEDIAPACKAGE_API Aws::String SerializePayload() const override; /** * The end of the time-window which will be harvested */ inline const Aws::String& GetEndTime() const{ return m_endTime; } /** * The end of the time-window which will be harvested */ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** * The end of the time-window which will be harvested */ inline void SetEndTime(const Aws::String& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** * The end of the time-window which will be harvested */ inline void SetEndTime(Aws::String&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** * The end of the time-window which will be harvested */ inline void SetEndTime(const char* value) { m_endTimeHasBeenSet = true; m_endTime.assign(value); } /** * The end of the time-window which will be harvested */ inline CreateHarvestJobRequest& WithEndTime(const Aws::String& value) { SetEndTime(value); return *this;} /** * The end of the time-window which will be harvested */ inline CreateHarvestJobRequest& WithEndTime(Aws::String&& value) { SetEndTime(std::move(value)); return *this;} /** * The end of the time-window which will be harvested */ inline CreateHarvestJobRequest& WithEndTime(const char* value) { SetEndTime(value); return *this;} /** * The ID of the HarvestJob. The ID must be unique within the region and it cannot * be changed after the HarvestJob is submitted */ inline const Aws::String& GetId() const{ return m_id; } /** * The ID of the HarvestJob. The ID must be unique within the region and it cannot * be changed after the HarvestJob is submitted */ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** * The ID of the HarvestJob. The ID must be unique within the region and it cannot * be changed after the HarvestJob is submitted */ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** * The ID of the HarvestJob. The ID must be unique within the region and it cannot * be changed after the HarvestJob is submitted */ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** * The ID of the HarvestJob. The ID must be unique within the region and it cannot * be changed after the HarvestJob is submitted */ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** * The ID of the HarvestJob. The ID must be unique within the region and it cannot * be changed after the HarvestJob is submitted */ inline CreateHarvestJobRequest& WithId(const Aws::String& value) { SetId(value); return *this;} /** * The ID of the HarvestJob. The ID must be unique within the region and it cannot * be changed after the HarvestJob is submitted */ inline CreateHarvestJobRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** * The ID of the HarvestJob. The ID must be unique within the region and it cannot * be changed after the HarvestJob is submitted */ inline CreateHarvestJobRequest& WithId(const char* value) { SetId(value); return *this;} /** * The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot * be changed after the HarvestJob is submitted. */ inline const Aws::String& GetOriginEndpointId() const{ return m_originEndpointId; } /** * The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot * be changed after the HarvestJob is submitted. */ inline bool OriginEndpointIdHasBeenSet() const { return m_originEndpointIdHasBeenSet; } /** * The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot * be changed after the HarvestJob is submitted. */ inline void SetOriginEndpointId(const Aws::String& value) { m_originEndpointIdHasBeenSet = true; m_originEndpointId = value; } /** * The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot * be changed after the HarvestJob is submitted. */ inline void SetOriginEndpointId(Aws::String&& value) { m_originEndpointIdHasBeenSet = true; m_originEndpointId = std::move(value); } /** * The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot * be changed after the HarvestJob is submitted. */ inline void SetOriginEndpointId(const char* value) { m_originEndpointIdHasBeenSet = true; m_originEndpointId.assign(value); } /** * The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot * be changed after the HarvestJob is submitted. */ inline CreateHarvestJobRequest& WithOriginEndpointId(const Aws::String& value) { SetOriginEndpointId(value); return *this;} /** * The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot * be changed after the HarvestJob is submitted. */ inline CreateHarvestJobRequest& WithOriginEndpointId(Aws::String&& value) { SetOriginEndpointId(std::move(value)); return *this;} /** * The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot * be changed after the HarvestJob is submitted. */ inline CreateHarvestJobRequest& WithOriginEndpointId(const char* value) { SetOriginEndpointId(value); return *this;} inline const S3Destination& GetS3Destination() const{ return m_s3Destination; } inline bool S3DestinationHasBeenSet() const { return m_s3DestinationHasBeenSet; } inline void SetS3Destination(const S3Destination& value) { m_s3DestinationHasBeenSet = true; m_s3Destination = value; } inline void SetS3Destination(S3Destination&& value) { m_s3DestinationHasBeenSet = true; m_s3Destination = std::move(value); } inline CreateHarvestJobRequest& WithS3Destination(const S3Destination& value) { SetS3Destination(value); return *this;} inline CreateHarvestJobRequest& WithS3Destination(S3Destination&& value) { SetS3Destination(std::move(value)); return *this;} /** * The start of the time-window which will be harvested */ inline const Aws::String& GetStartTime() const{ return m_startTime; } /** * The start of the time-window which will be harvested */ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** * The start of the time-window which will be harvested */ inline void SetStartTime(const Aws::String& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** * The start of the time-window which will be harvested */ inline void SetStartTime(Aws::String&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** * The start of the time-window which will be harvested */ inline void SetStartTime(const char* value) { m_startTimeHasBeenSet = true; m_startTime.assign(value); } /** * The start of the time-window which will be harvested */ inline CreateHarvestJobRequest& WithStartTime(const Aws::String& value) { SetStartTime(value); return *this;} /** * The start of the time-window which will be harvested */ inline CreateHarvestJobRequest& WithStartTime(Aws::String&& value) { SetStartTime(std::move(value)); return *this;} /** * The start of the time-window which will be harvested */ inline CreateHarvestJobRequest& WithStartTime(const char* value) { SetStartTime(value); return *this;} private: Aws::String m_endTime; bool m_endTimeHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_originEndpointId; bool m_originEndpointIdHasBeenSet = false; S3Destination m_s3Destination; bool m_s3DestinationHasBeenSet = false; Aws::String m_startTime; bool m_startTimeHasBeenSet = false; }; } // namespace Model } // namespace MediaPackage } // namespace Aws