/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a bundle task.See Also:
AWS API
* Reference
The ID of the bundle task.
*/ inline const Aws::String& GetBundleId() const{ return m_bundleId; } /** *The ID of the bundle task.
*/ inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; } /** *The ID of the bundle task.
*/ inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; } /** *The ID of the bundle task.
*/ inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); } /** *The ID of the bundle task.
*/ inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); } /** *The ID of the bundle task.
*/ inline BundleTask& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;} /** *The ID of the bundle task.
*/ inline BundleTask& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;} /** *The ID of the bundle task.
*/ inline BundleTask& WithBundleId(const char* value) { SetBundleId(value); return *this;} /** *If the task fails, a description of the error.
*/ inline const BundleTaskError& GetBundleTaskError() const{ return m_bundleTaskError; } /** *If the task fails, a description of the error.
*/ inline bool BundleTaskErrorHasBeenSet() const { return m_bundleTaskErrorHasBeenSet; } /** *If the task fails, a description of the error.
*/ inline void SetBundleTaskError(const BundleTaskError& value) { m_bundleTaskErrorHasBeenSet = true; m_bundleTaskError = value; } /** *If the task fails, a description of the error.
*/ inline void SetBundleTaskError(BundleTaskError&& value) { m_bundleTaskErrorHasBeenSet = true; m_bundleTaskError = std::move(value); } /** *If the task fails, a description of the error.
*/ inline BundleTask& WithBundleTaskError(const BundleTaskError& value) { SetBundleTaskError(value); return *this;} /** *If the task fails, a description of the error.
*/ inline BundleTask& WithBundleTaskError(BundleTaskError&& value) { SetBundleTaskError(std::move(value)); return *this;} /** *The ID of the instance associated with this bundle task.
*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *The ID of the instance associated with this bundle task.
*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *The ID of the instance associated with this bundle task.
*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *The ID of the instance associated with this bundle task.
*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *The ID of the instance associated with this bundle task.
*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *The ID of the instance associated with this bundle task.
*/ inline BundleTask& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *The ID of the instance associated with this bundle task.
*/ inline BundleTask& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *The ID of the instance associated with this bundle task.
*/ inline BundleTask& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *The level of task completion, as a percent (for example, 20%).
*/ inline const Aws::String& GetProgress() const{ return m_progress; } /** *The level of task completion, as a percent (for example, 20%).
*/ inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; } /** *The level of task completion, as a percent (for example, 20%).
*/ inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; } /** *The level of task completion, as a percent (for example, 20%).
*/ inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); } /** *The level of task completion, as a percent (for example, 20%).
*/ inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); } /** *The level of task completion, as a percent (for example, 20%).
*/ inline BundleTask& WithProgress(const Aws::String& value) { SetProgress(value); return *this;} /** *The level of task completion, as a percent (for example, 20%).
*/ inline BundleTask& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;} /** *The level of task completion, as a percent (for example, 20%).
*/ inline BundleTask& WithProgress(const char* value) { SetProgress(value); return *this;} /** *The time this task started.
*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *The time this task started.
*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *The time this task started.
*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *The time this task started.
*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *The time this task started.
*/ inline BundleTask& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *The time this task started.
*/ inline BundleTask& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *The state of the task.
*/ inline const BundleTaskState& GetState() const{ return m_state; } /** *The state of the task.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the task.
*/ inline void SetState(const BundleTaskState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the task.
*/ inline void SetState(BundleTaskState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the task.
*/ inline BundleTask& WithState(const BundleTaskState& value) { SetState(value); return *this;} /** *The state of the task.
*/ inline BundleTask& WithState(BundleTaskState&& value) { SetState(std::move(value)); return *this;} /** *The Amazon S3 storage locations.
*/ inline const Storage& GetStorage() const{ return m_storage; } /** *The Amazon S3 storage locations.
*/ inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; } /** *The Amazon S3 storage locations.
*/ inline void SetStorage(const Storage& value) { m_storageHasBeenSet = true; m_storage = value; } /** *The Amazon S3 storage locations.
*/ inline void SetStorage(Storage&& value) { m_storageHasBeenSet = true; m_storage = std::move(value); } /** *The Amazon S3 storage locations.
*/ inline BundleTask& WithStorage(const Storage& value) { SetStorage(value); return *this;} /** *The Amazon S3 storage locations.
*/ inline BundleTask& WithStorage(Storage&& value) { SetStorage(std::move(value)); return *this;} /** *The time of the most recent update for the task.
*/ inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; } /** *The time of the most recent update for the task.
*/ inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; } /** *The time of the most recent update for the task.
*/ inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; } /** *The time of the most recent update for the task.
*/ inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); } /** *The time of the most recent update for the task.
*/ inline BundleTask& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;} /** *The time of the most recent update for the task.
*/ inline BundleTask& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;} private: Aws::String m_bundleId; bool m_bundleIdHasBeenSet = false; BundleTaskError m_bundleTaskError; bool m_bundleTaskErrorHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_progress; bool m_progressHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; BundleTaskState m_state; bool m_stateHasBeenSet = false; Storage m_storage; bool m_storageHasBeenSet = false; Aws::Utils::DateTime m_updateTime; bool m_updateTimeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws