/** * 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 Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes the client-specific data.

See Also:

AWS API * Reference

*/ class ClientData { public: AWS_EC2_API ClientData(); AWS_EC2_API ClientData(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ClientData& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

A user-defined comment about the disk upload.

*/ inline const Aws::String& GetComment() const{ return m_comment; } /** *

A user-defined comment about the disk upload.

*/ inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; } /** *

A user-defined comment about the disk upload.

*/ inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; } /** *

A user-defined comment about the disk upload.

*/ inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); } /** *

A user-defined comment about the disk upload.

*/ inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); } /** *

A user-defined comment about the disk upload.

*/ inline ClientData& WithComment(const Aws::String& value) { SetComment(value); return *this;} /** *

A user-defined comment about the disk upload.

*/ inline ClientData& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;} /** *

A user-defined comment about the disk upload.

*/ inline ClientData& WithComment(const char* value) { SetComment(value); return *this;} /** *

The time that the disk upload ends.

*/ inline const Aws::Utils::DateTime& GetUploadEnd() const{ return m_uploadEnd; } /** *

The time that the disk upload ends.

*/ inline bool UploadEndHasBeenSet() const { return m_uploadEndHasBeenSet; } /** *

The time that the disk upload ends.

*/ inline void SetUploadEnd(const Aws::Utils::DateTime& value) { m_uploadEndHasBeenSet = true; m_uploadEnd = value; } /** *

The time that the disk upload ends.

*/ inline void SetUploadEnd(Aws::Utils::DateTime&& value) { m_uploadEndHasBeenSet = true; m_uploadEnd = std::move(value); } /** *

The time that the disk upload ends.

*/ inline ClientData& WithUploadEnd(const Aws::Utils::DateTime& value) { SetUploadEnd(value); return *this;} /** *

The time that the disk upload ends.

*/ inline ClientData& WithUploadEnd(Aws::Utils::DateTime&& value) { SetUploadEnd(std::move(value)); return *this;} /** *

The size of the uploaded disk image, in GiB.

*/ inline double GetUploadSize() const{ return m_uploadSize; } /** *

The size of the uploaded disk image, in GiB.

*/ inline bool UploadSizeHasBeenSet() const { return m_uploadSizeHasBeenSet; } /** *

The size of the uploaded disk image, in GiB.

*/ inline void SetUploadSize(double value) { m_uploadSizeHasBeenSet = true; m_uploadSize = value; } /** *

The size of the uploaded disk image, in GiB.

*/ inline ClientData& WithUploadSize(double value) { SetUploadSize(value); return *this;} /** *

The time that the disk upload starts.

*/ inline const Aws::Utils::DateTime& GetUploadStart() const{ return m_uploadStart; } /** *

The time that the disk upload starts.

*/ inline bool UploadStartHasBeenSet() const { return m_uploadStartHasBeenSet; } /** *

The time that the disk upload starts.

*/ inline void SetUploadStart(const Aws::Utils::DateTime& value) { m_uploadStartHasBeenSet = true; m_uploadStart = value; } /** *

The time that the disk upload starts.

*/ inline void SetUploadStart(Aws::Utils::DateTime&& value) { m_uploadStartHasBeenSet = true; m_uploadStart = std::move(value); } /** *

The time that the disk upload starts.

*/ inline ClientData& WithUploadStart(const Aws::Utils::DateTime& value) { SetUploadStart(value); return *this;} /** *

The time that the disk upload starts.

*/ inline ClientData& WithUploadStart(Aws::Utils::DateTime&& value) { SetUploadStart(std::move(value)); return *this;} private: Aws::String m_comment; bool m_commentHasBeenSet = false; Aws::Utils::DateTime m_uploadEnd; bool m_uploadEndHasBeenSet = false; double m_uploadSize; bool m_uploadSizeHasBeenSet = false; Aws::Utils::DateTime m_uploadStart; bool m_uploadStartHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws