/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include DescribeAgentResponseSee Also:
AWS
* API Reference
The ARN of the agent.
*/ inline const Aws::String& GetAgentArn() const{ return m_agentArn; } /** *The ARN of the agent.
*/ inline void SetAgentArn(const Aws::String& value) { m_agentArn = value; } /** *The ARN of the agent.
*/ inline void SetAgentArn(Aws::String&& value) { m_agentArn = std::move(value); } /** *The ARN of the agent.
*/ inline void SetAgentArn(const char* value) { m_agentArn.assign(value); } /** *The ARN of the agent.
*/ inline DescribeAgentResult& WithAgentArn(const Aws::String& value) { SetAgentArn(value); return *this;} /** *The ARN of the agent.
*/ inline DescribeAgentResult& WithAgentArn(Aws::String&& value) { SetAgentArn(std::move(value)); return *this;} /** *The ARN of the agent.
*/ inline DescribeAgentResult& WithAgentArn(const char* value) { SetAgentArn(value); return *this;} /** *The name of the agent.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the agent.
*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *The name of the agent.
*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *The name of the agent.
*/ inline void SetName(const char* value) { m_name.assign(value); } /** *The name of the agent.
*/ inline DescribeAgentResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the agent.
*/ inline DescribeAgentResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the agent.
*/ inline DescribeAgentResult& WithName(const char* value) { SetName(value); return *this;} /** *The status of the agent. If the status is ONLINE, then the agent is * configured properly and is available to use. The Running status is the normal * running status for an agent. If the status is OFFLINE, the agent's VM is turned * off or the agent is in an unhealthy state. When the issue that caused the * unhealthy state is resolved, the agent returns to ONLINE status.
*/ inline const AgentStatus& GetStatus() const{ return m_status; } /** *The status of the agent. If the status is ONLINE, then the agent is * configured properly and is available to use. The Running status is the normal * running status for an agent. If the status is OFFLINE, the agent's VM is turned * off or the agent is in an unhealthy state. When the issue that caused the * unhealthy state is resolved, the agent returns to ONLINE status.
*/ inline void SetStatus(const AgentStatus& value) { m_status = value; } /** *The status of the agent. If the status is ONLINE, then the agent is * configured properly and is available to use. The Running status is the normal * running status for an agent. If the status is OFFLINE, the agent's VM is turned * off or the agent is in an unhealthy state. When the issue that caused the * unhealthy state is resolved, the agent returns to ONLINE status.
*/ inline void SetStatus(AgentStatus&& value) { m_status = std::move(value); } /** *The status of the agent. If the status is ONLINE, then the agent is * configured properly and is available to use. The Running status is the normal * running status for an agent. If the status is OFFLINE, the agent's VM is turned * off or the agent is in an unhealthy state. When the issue that caused the * unhealthy state is resolved, the agent returns to ONLINE status.
*/ inline DescribeAgentResult& WithStatus(const AgentStatus& value) { SetStatus(value); return *this;} /** *The status of the agent. If the status is ONLINE, then the agent is * configured properly and is available to use. The Running status is the normal * running status for an agent. If the status is OFFLINE, the agent's VM is turned * off or the agent is in an unhealthy state. When the issue that caused the * unhealthy state is resolved, the agent returns to ONLINE status.
*/ inline DescribeAgentResult& WithStatus(AgentStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The time that the agent last connected to DataSync.
*/ inline const Aws::Utils::DateTime& GetLastConnectionTime() const{ return m_lastConnectionTime; } /** *The time that the agent last connected to DataSync.
*/ inline void SetLastConnectionTime(const Aws::Utils::DateTime& value) { m_lastConnectionTime = value; } /** *The time that the agent last connected to DataSync.
*/ inline void SetLastConnectionTime(Aws::Utils::DateTime&& value) { m_lastConnectionTime = std::move(value); } /** *The time that the agent last connected to DataSync.
*/ inline DescribeAgentResult& WithLastConnectionTime(const Aws::Utils::DateTime& value) { SetLastConnectionTime(value); return *this;} /** *The time that the agent last connected to DataSync.
*/ inline DescribeAgentResult& WithLastConnectionTime(Aws::Utils::DateTime&& value) { SetLastConnectionTime(std::move(value)); return *this;} /** *The time that the agent was activated (that is, created in your account).
*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *The time that the agent was activated (that is, created in your account).
*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; } /** *The time that the agent was activated (that is, created in your account).
*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); } /** *The time that the agent was activated (that is, created in your account).
*/ inline DescribeAgentResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *The time that the agent was activated (that is, created in your account).
*/ inline DescribeAgentResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *The type of endpoint that your agent is connected to. If the endpoint is a * VPC endpoint, the agent is not accessible over the public internet.
*/ inline const EndpointType& GetEndpointType() const{ return m_endpointType; } /** *The type of endpoint that your agent is connected to. If the endpoint is a * VPC endpoint, the agent is not accessible over the public internet.
*/ inline void SetEndpointType(const EndpointType& value) { m_endpointType = value; } /** *The type of endpoint that your agent is connected to. If the endpoint is a * VPC endpoint, the agent is not accessible over the public internet.
*/ inline void SetEndpointType(EndpointType&& value) { m_endpointType = std::move(value); } /** *The type of endpoint that your agent is connected to. If the endpoint is a * VPC endpoint, the agent is not accessible over the public internet.
*/ inline DescribeAgentResult& WithEndpointType(const EndpointType& value) { SetEndpointType(value); return *this;} /** *The type of endpoint that your agent is connected to. If the endpoint is a * VPC endpoint, the agent is not accessible over the public internet.
*/ inline DescribeAgentResult& WithEndpointType(EndpointType&& value) { SetEndpointType(std::move(value)); return *this;} /** *The subnet and the security group that DataSync used to access a VPC * endpoint.
*/ inline const PrivateLinkConfig& GetPrivateLinkConfig() const{ return m_privateLinkConfig; } /** *The subnet and the security group that DataSync used to access a VPC * endpoint.
*/ inline void SetPrivateLinkConfig(const PrivateLinkConfig& value) { m_privateLinkConfig = value; } /** *The subnet and the security group that DataSync used to access a VPC * endpoint.
*/ inline void SetPrivateLinkConfig(PrivateLinkConfig&& value) { m_privateLinkConfig = std::move(value); } /** *The subnet and the security group that DataSync used to access a VPC * endpoint.
*/ inline DescribeAgentResult& WithPrivateLinkConfig(const PrivateLinkConfig& value) { SetPrivateLinkConfig(value); return *this;} /** *The subnet and the security group that DataSync used to access a VPC * endpoint.
*/ inline DescribeAgentResult& WithPrivateLinkConfig(PrivateLinkConfig&& value) { SetPrivateLinkConfig(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeAgentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeAgentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeAgentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_agentArn; Aws::String m_name; AgentStatus m_status; Aws::Utils::DateTime m_lastConnectionTime; Aws::Utils::DateTime m_creationTime; EndpointType m_endpointType; PrivateLinkConfig m_privateLinkConfig; Aws::String m_requestId; }; } // namespace Model } // namespace DataSync } // namespace Aws