/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class GetPasswordDataResponse { public: AWS_EC2_API GetPasswordDataResponse(); AWS_EC2_API GetPasswordDataResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API GetPasswordDataResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the Windows instance.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The ID of the Windows instance.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceId = value; } /** *

The ID of the Windows instance.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceId = std::move(value); } /** *

The ID of the Windows instance.

*/ inline void SetInstanceId(const char* value) { m_instanceId.assign(value); } /** *

The ID of the Windows instance.

*/ inline GetPasswordDataResponse& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The ID of the Windows instance.

*/ inline GetPasswordDataResponse& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The ID of the Windows instance.

*/ inline GetPasswordDataResponse& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The password of the instance. Returns an empty string if the password is not * available.

*/ inline const Aws::String& GetPasswordData() const{ return m_passwordData; } /** *

The password of the instance. Returns an empty string if the password is not * available.

*/ inline void SetPasswordData(const Aws::String& value) { m_passwordData = value; } /** *

The password of the instance. Returns an empty string if the password is not * available.

*/ inline void SetPasswordData(Aws::String&& value) { m_passwordData = std::move(value); } /** *

The password of the instance. Returns an empty string if the password is not * available.

*/ inline void SetPasswordData(const char* value) { m_passwordData.assign(value); } /** *

The password of the instance. Returns an empty string if the password is not * available.

*/ inline GetPasswordDataResponse& WithPasswordData(const Aws::String& value) { SetPasswordData(value); return *this;} /** *

The password of the instance. Returns an empty string if the password is not * available.

*/ inline GetPasswordDataResponse& WithPasswordData(Aws::String&& value) { SetPasswordData(std::move(value)); return *this;} /** *

The password of the instance. Returns an empty string if the password is not * available.

*/ inline GetPasswordDataResponse& WithPasswordData(const char* value) { SetPasswordData(value); return *this;} /** *

The time the data was last updated.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

The time the data was last updated.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestamp = value; } /** *

The time the data was last updated.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestamp = std::move(value); } /** *

The time the data was last updated.

*/ inline GetPasswordDataResponse& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

The time the data was last updated.

*/ inline GetPasswordDataResponse& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline GetPasswordDataResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline GetPasswordDataResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_instanceId; Aws::String m_passwordData; Aws::Utils::DateTime m_timestamp; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws