/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElasticBeanstalk { namespace Model { /** *

The information retrieved from the Amazon EC2 instances.

See * Also:

AWS * API Reference

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

The type of information retrieved.

*/ inline const EnvironmentInfoType& GetInfoType() const{ return m_infoType; } /** *

The type of information retrieved.

*/ inline bool InfoTypeHasBeenSet() const { return m_infoTypeHasBeenSet; } /** *

The type of information retrieved.

*/ inline void SetInfoType(const EnvironmentInfoType& value) { m_infoTypeHasBeenSet = true; m_infoType = value; } /** *

The type of information retrieved.

*/ inline void SetInfoType(EnvironmentInfoType&& value) { m_infoTypeHasBeenSet = true; m_infoType = std::move(value); } /** *

The type of information retrieved.

*/ inline EnvironmentInfoDescription& WithInfoType(const EnvironmentInfoType& value) { SetInfoType(value); return *this;} /** *

The type of information retrieved.

*/ inline EnvironmentInfoDescription& WithInfoType(EnvironmentInfoType&& value) { SetInfoType(std::move(value)); return *this;} /** *

The Amazon EC2 Instance ID for this information.

*/ inline const Aws::String& GetEc2InstanceId() const{ return m_ec2InstanceId; } /** *

The Amazon EC2 Instance ID for this information.

*/ inline bool Ec2InstanceIdHasBeenSet() const { return m_ec2InstanceIdHasBeenSet; } /** *

The Amazon EC2 Instance ID for this information.

*/ inline void SetEc2InstanceId(const Aws::String& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = value; } /** *

The Amazon EC2 Instance ID for this information.

*/ inline void SetEc2InstanceId(Aws::String&& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = std::move(value); } /** *

The Amazon EC2 Instance ID for this information.

*/ inline void SetEc2InstanceId(const char* value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId.assign(value); } /** *

The Amazon EC2 Instance ID for this information.

*/ inline EnvironmentInfoDescription& WithEc2InstanceId(const Aws::String& value) { SetEc2InstanceId(value); return *this;} /** *

The Amazon EC2 Instance ID for this information.

*/ inline EnvironmentInfoDescription& WithEc2InstanceId(Aws::String&& value) { SetEc2InstanceId(std::move(value)); return *this;} /** *

The Amazon EC2 Instance ID for this information.

*/ inline EnvironmentInfoDescription& WithEc2InstanceId(const char* value) { SetEc2InstanceId(value); return *this;} /** *

The time stamp when this information was retrieved.

*/ inline const Aws::Utils::DateTime& GetSampleTimestamp() const{ return m_sampleTimestamp; } /** *

The time stamp when this information was retrieved.

*/ inline bool SampleTimestampHasBeenSet() const { return m_sampleTimestampHasBeenSet; } /** *

The time stamp when this information was retrieved.

*/ inline void SetSampleTimestamp(const Aws::Utils::DateTime& value) { m_sampleTimestampHasBeenSet = true; m_sampleTimestamp = value; } /** *

The time stamp when this information was retrieved.

*/ inline void SetSampleTimestamp(Aws::Utils::DateTime&& value) { m_sampleTimestampHasBeenSet = true; m_sampleTimestamp = std::move(value); } /** *

The time stamp when this information was retrieved.

*/ inline EnvironmentInfoDescription& WithSampleTimestamp(const Aws::Utils::DateTime& value) { SetSampleTimestamp(value); return *this;} /** *

The time stamp when this information was retrieved.

*/ inline EnvironmentInfoDescription& WithSampleTimestamp(Aws::Utils::DateTime&& value) { SetSampleTimestamp(std::move(value)); return *this;} /** *

The retrieved information. Currently contains a presigned Amazon S3 URL. The * files are deleted after 15 minutes.

Anyone in possession of this URL can * access the files before they are deleted. Make the URL available only to trusted * parties.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The retrieved information. Currently contains a presigned Amazon S3 URL. The * files are deleted after 15 minutes.

Anyone in possession of this URL can * access the files before they are deleted. Make the URL available only to trusted * parties.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The retrieved information. Currently contains a presigned Amazon S3 URL. The * files are deleted after 15 minutes.

Anyone in possession of this URL can * access the files before they are deleted. Make the URL available only to trusted * parties.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The retrieved information. Currently contains a presigned Amazon S3 URL. The * files are deleted after 15 minutes.

Anyone in possession of this URL can * access the files before they are deleted. Make the URL available only to trusted * parties.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The retrieved information. Currently contains a presigned Amazon S3 URL. The * files are deleted after 15 minutes.

Anyone in possession of this URL can * access the files before they are deleted. Make the URL available only to trusted * parties.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The retrieved information. Currently contains a presigned Amazon S3 URL. The * files are deleted after 15 minutes.

Anyone in possession of this URL can * access the files before they are deleted. Make the URL available only to trusted * parties.

*/ inline EnvironmentInfoDescription& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The retrieved information. Currently contains a presigned Amazon S3 URL. The * files are deleted after 15 minutes.

Anyone in possession of this URL can * access the files before they are deleted. Make the URL available only to trusted * parties.

*/ inline EnvironmentInfoDescription& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The retrieved information. Currently contains a presigned Amazon S3 URL. The * files are deleted after 15 minutes.

Anyone in possession of this URL can * access the files before they are deleted. Make the URL available only to trusted * parties.

*/ inline EnvironmentInfoDescription& WithMessage(const char* value) { SetMessage(value); return *this;} private: EnvironmentInfoType m_infoType; bool m_infoTypeHasBeenSet = false; Aws::String m_ec2InstanceId; bool m_ec2InstanceIdHasBeenSet = false; Aws::Utils::DateTime m_sampleTimestamp; bool m_sampleTimestampHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws