This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-ec2/include/aws/ec2/model/BundleTask.h

353 lines
11 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/ec2/model/BundleTaskError.h>
#include <aws/core/utils/DateTime.h>
#include <aws/ec2/model/BundleTaskState.h>
#include <aws/ec2/model/Storage.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace EC2
{
namespace Model
{
/**
* <p>Describes a bundle task.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleTask">AWS API
* Reference</a></p>
*/
class AWS_EC2_API BundleTask
{
public:
BundleTask();
BundleTask(const Aws::Utils::Xml::XmlNode& xmlNode);
BundleTask& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>The ID of the bundle task.</p>
*/
inline const Aws::String& GetBundleId() const{ return m_bundleId; }
/**
* <p>The ID of the bundle task.</p>
*/
inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
/**
* <p>The ID of the bundle task.</p>
*/
inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
/**
* <p>The ID of the bundle task.</p>
*/
inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
/**
* <p>The ID of the bundle task.</p>
*/
inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
/**
* <p>The ID of the bundle task.</p>
*/
inline BundleTask& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
/**
* <p>The ID of the bundle task.</p>
*/
inline BundleTask& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
/**
* <p>The ID of the bundle task.</p>
*/
inline BundleTask& WithBundleId(const char* value) { SetBundleId(value); return *this;}
/**
* <p>If the task fails, a description of the error.</p>
*/
inline const BundleTaskError& GetBundleTaskError() const{ return m_bundleTaskError; }
/**
* <p>If the task fails, a description of the error.</p>
*/
inline bool BundleTaskErrorHasBeenSet() const { return m_bundleTaskErrorHasBeenSet; }
/**
* <p>If the task fails, a description of the error.</p>
*/
inline void SetBundleTaskError(const BundleTaskError& value) { m_bundleTaskErrorHasBeenSet = true; m_bundleTaskError = value; }
/**
* <p>If the task fails, a description of the error.</p>
*/
inline void SetBundleTaskError(BundleTaskError&& value) { m_bundleTaskErrorHasBeenSet = true; m_bundleTaskError = std::move(value); }
/**
* <p>If the task fails, a description of the error.</p>
*/
inline BundleTask& WithBundleTaskError(const BundleTaskError& value) { SetBundleTaskError(value); return *this;}
/**
* <p>If the task fails, a description of the error.</p>
*/
inline BundleTask& WithBundleTaskError(BundleTaskError&& value) { SetBundleTaskError(std::move(value)); return *this;}
/**
* <p>The ID of the instance associated with this bundle task.</p>
*/
inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
/**
* <p>The ID of the instance associated with this bundle task.</p>
*/
inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
/**
* <p>The ID of the instance associated with this bundle task.</p>
*/
inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
/**
* <p>The ID of the instance associated with this bundle task.</p>
*/
inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
/**
* <p>The ID of the instance associated with this bundle task.</p>
*/
inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
/**
* <p>The ID of the instance associated with this bundle task.</p>
*/
inline BundleTask& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
/**
* <p>The ID of the instance associated with this bundle task.</p>
*/
inline BundleTask& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
/**
* <p>The ID of the instance associated with this bundle task.</p>
*/
inline BundleTask& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
/**
* <p>The level of task completion, as a percent (for example, 20%).</p>
*/
inline const Aws::String& GetProgress() const{ return m_progress; }
/**
* <p>The level of task completion, as a percent (for example, 20%).</p>
*/
inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
/**
* <p>The level of task completion, as a percent (for example, 20%).</p>
*/
inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; }
/**
* <p>The level of task completion, as a percent (for example, 20%).</p>
*/
inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); }
/**
* <p>The level of task completion, as a percent (for example, 20%).</p>
*/
inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); }
/**
* <p>The level of task completion, as a percent (for example, 20%).</p>
*/
inline BundleTask& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
/**
* <p>The level of task completion, as a percent (for example, 20%).</p>
*/
inline BundleTask& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;}
/**
* <p>The level of task completion, as a percent (for example, 20%).</p>
*/
inline BundleTask& WithProgress(const char* value) { SetProgress(value); return *this;}
/**
* <p>The time this task started.</p>
*/
inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
/**
* <p>The time this task started.</p>
*/
inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
/**
* <p>The time this task started.</p>
*/
inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
/**
* <p>The time this task started.</p>
*/
inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
/**
* <p>The time this task started.</p>
*/
inline BundleTask& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>The time this task started.</p>
*/
inline BundleTask& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
/**
* <p>The state of the task.</p>
*/
inline const BundleTaskState& GetState() const{ return m_state; }
/**
* <p>The state of the task.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The state of the task.</p>
*/
inline void SetState(const BundleTaskState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The state of the task.</p>
*/
inline void SetState(BundleTaskState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The state of the task.</p>
*/
inline BundleTask& WithState(const BundleTaskState& value) { SetState(value); return *this;}
/**
* <p>The state of the task.</p>
*/
inline BundleTask& WithState(BundleTaskState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The Amazon S3 storage locations.</p>
*/
inline const Storage& GetStorage() const{ return m_storage; }
/**
* <p>The Amazon S3 storage locations.</p>
*/
inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
/**
* <p>The Amazon S3 storage locations.</p>
*/
inline void SetStorage(const Storage& value) { m_storageHasBeenSet = true; m_storage = value; }
/**
* <p>The Amazon S3 storage locations.</p>
*/
inline void SetStorage(Storage&& value) { m_storageHasBeenSet = true; m_storage = std::move(value); }
/**
* <p>The Amazon S3 storage locations.</p>
*/
inline BundleTask& WithStorage(const Storage& value) { SetStorage(value); return *this;}
/**
* <p>The Amazon S3 storage locations.</p>
*/
inline BundleTask& WithStorage(Storage&& value) { SetStorage(std::move(value)); return *this;}
/**
* <p>The time of the most recent update for the task.</p>
*/
inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
/**
* <p>The time of the most recent update for the task.</p>
*/
inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
/**
* <p>The time of the most recent update for the task.</p>
*/
inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
/**
* <p>The time of the most recent update for the task.</p>
*/
inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); }
/**
* <p>The time of the most recent update for the task.</p>
*/
inline BundleTask& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
/**
* <p>The time of the most recent update for the task.</p>
*/
inline BundleTask& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;}
private:
Aws::String m_bundleId;
bool m_bundleIdHasBeenSet;
BundleTaskError m_bundleTaskError;
bool m_bundleTaskErrorHasBeenSet;
Aws::String m_instanceId;
bool m_instanceIdHasBeenSet;
Aws::String m_progress;
bool m_progressHasBeenSet;
Aws::Utils::DateTime m_startTime;
bool m_startTimeHasBeenSet;
BundleTaskState m_state;
bool m_stateHasBeenSet;
Storage m_storage;
bool m_storageHasBeenSet;
Aws::Utils::DateTime m_updateTime;
bool m_updateTimeHasBeenSet;
};
} // namespace Model
} // namespace EC2
} // namespace Aws