All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.datasync.model.DescribeAgentResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS DataSync module holds the client classes that are used for communicating with AWS DataSync Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.datasync.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 

* DescribeAgentResponse *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeAgentResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The ARN of the agent. *

*/ private String agentArn; /** *

* The name of the agent. *

*/ private String name; /** *

* The status of the agent. *

*
    *
  • *

    * If the status is ONLINE, the agent is configured properly and ready to use. *

    *
  • *
  • *

    * If the status is OFFLINE, the agent has been out of contact with DataSync for five minutes or * longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline? *

    *
  • *
*/ private String status; /** *

* The last time that the agent was communicating with the DataSync service. *

*/ private java.util.Date lastConnectionTime; /** *

* The time that the agent was activated. *

*/ private java.util.Date creationTime; /** *

* The type of service * endpoint that your agent is connected to. *

*/ private String endpointType; /** *

* The network configuration that the agent uses when connecting to a VPC service endpoint. *

*/ private PrivateLinkConfig privateLinkConfig; /** *

* The platform-related details about the agent, such as the version number. *

*/ private Platform platform; /** *

* The ARN of the agent. *

* * @param agentArn * The ARN of the agent. */ public void setAgentArn(String agentArn) { this.agentArn = agentArn; } /** *

* The ARN of the agent. *

* * @return The ARN of the agent. */ public String getAgentArn() { return this.agentArn; } /** *

* The ARN of the agent. *

* * @param agentArn * The ARN of the agent. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAgentResult withAgentArn(String agentArn) { setAgentArn(agentArn); return this; } /** *

* The name of the agent. *

* * @param name * The name of the agent. */ public void setName(String name) { this.name = name; } /** *

* The name of the agent. *

* * @return The name of the agent. */ public String getName() { return this.name; } /** *

* The name of the agent. *

* * @param name * The name of the agent. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAgentResult withName(String name) { setName(name); return this; } /** *

* The status of the agent. *

*
    *
  • *

    * If the status is ONLINE, the agent is configured properly and ready to use. *

    *
  • *
  • *

    * If the status is OFFLINE, the agent has been out of contact with DataSync for five minutes or * longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline? *

    *
  • *
* * @param status * The status of the agent.

*
    *
  • *

    * If the status is ONLINE, the agent is configured properly and ready to use. *

    *
  • *
  • *

    * If the status is OFFLINE, the agent has been out of contact with DataSync for five minutes or * longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline? *

    *
  • * @see AgentStatus */ public void setStatus(String status) { this.status = status; } /** *

    * The status of the agent. *

    *
      *
    • *

      * If the status is ONLINE, the agent is configured properly and ready to use. *

      *
    • *
    • *

      * If the status is OFFLINE, the agent has been out of contact with DataSync for five minutes or * longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline? *

      *
    • *
    * * @return The status of the agent.

    *
      *
    • *

      * If the status is ONLINE, the agent is configured properly and ready to use. *

      *
    • *
    • *

      * If the status is OFFLINE, the agent has been out of contact with DataSync for five minutes * or longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline? *

      *
    • * @see AgentStatus */ public String getStatus() { return this.status; } /** *

      * The status of the agent. *

      *
        *
      • *

        * If the status is ONLINE, the agent is configured properly and ready to use. *

        *
      • *
      • *

        * If the status is OFFLINE, the agent has been out of contact with DataSync for five minutes or * longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline? *

        *
      • *
      * * @param status * The status of the agent.

      *
        *
      • *

        * If the status is ONLINE, the agent is configured properly and ready to use. *

        *
      • *
      • *

        * If the status is OFFLINE, the agent has been out of contact with DataSync for five minutes or * longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline? *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see AgentStatus */ public DescribeAgentResult withStatus(String status) { setStatus(status); return this; } /** *

        * The status of the agent. *

        *
          *
        • *

          * If the status is ONLINE, the agent is configured properly and ready to use. *

          *
        • *
        • *

          * If the status is OFFLINE, the agent has been out of contact with DataSync for five minutes or * longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline? *

          *
        • *
        * * @param status * The status of the agent.

        *
          *
        • *

          * If the status is ONLINE, the agent is configured properly and ready to use. *

          *
        • *
        • *

          * If the status is OFFLINE, the agent has been out of contact with DataSync for five minutes or * longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline? *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see AgentStatus */ public DescribeAgentResult withStatus(AgentStatus status) { this.status = status.toString(); return this; } /** *

          * The last time that the agent was communicating with the DataSync service. *

          * * @param lastConnectionTime * The last time that the agent was communicating with the DataSync service. */ public void setLastConnectionTime(java.util.Date lastConnectionTime) { this.lastConnectionTime = lastConnectionTime; } /** *

          * The last time that the agent was communicating with the DataSync service. *

          * * @return The last time that the agent was communicating with the DataSync service. */ public java.util.Date getLastConnectionTime() { return this.lastConnectionTime; } /** *

          * The last time that the agent was communicating with the DataSync service. *

          * * @param lastConnectionTime * The last time that the agent was communicating with the DataSync service. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAgentResult withLastConnectionTime(java.util.Date lastConnectionTime) { setLastConnectionTime(lastConnectionTime); return this; } /** *

          * The time that the agent was activated. *

          * * @param creationTime * The time that the agent was activated. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

          * The time that the agent was activated. *

          * * @return The time that the agent was activated. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

          * The time that the agent was activated. *

          * * @param creationTime * The time that the agent was activated. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAgentResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

          * The type of service * endpoint that your agent is connected to. *

          * * @param endpointType * The type of service * endpoint that your agent is connected to. * @see EndpointType */ public void setEndpointType(String endpointType) { this.endpointType = endpointType; } /** *

          * The type of service * endpoint that your agent is connected to. *

          * * @return The type of service * endpoint that your agent is connected to. * @see EndpointType */ public String getEndpointType() { return this.endpointType; } /** *

          * The type of service * endpoint that your agent is connected to. *

          * * @param endpointType * The type of service * endpoint that your agent is connected to. * @return Returns a reference to this object so that method calls can be chained together. * @see EndpointType */ public DescribeAgentResult withEndpointType(String endpointType) { setEndpointType(endpointType); return this; } /** *

          * The type of service * endpoint that your agent is connected to. *

          * * @param endpointType * The type of service * endpoint that your agent is connected to. * @return Returns a reference to this object so that method calls can be chained together. * @see EndpointType */ public DescribeAgentResult withEndpointType(EndpointType endpointType) { this.endpointType = endpointType.toString(); return this; } /** *

          * The network configuration that the agent uses when connecting to a VPC service endpoint. *

          * * @param privateLinkConfig * The network configuration that the agent uses when connecting to a VPC service endpoint. */ public void setPrivateLinkConfig(PrivateLinkConfig privateLinkConfig) { this.privateLinkConfig = privateLinkConfig; } /** *

          * The network configuration that the agent uses when connecting to a VPC service endpoint. *

          * * @return The network configuration that the agent uses when connecting to a VPC service endpoint. */ public PrivateLinkConfig getPrivateLinkConfig() { return this.privateLinkConfig; } /** *

          * The network configuration that the agent uses when connecting to a VPC service endpoint. *

          * * @param privateLinkConfig * The network configuration that the agent uses when connecting to a VPC service endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAgentResult withPrivateLinkConfig(PrivateLinkConfig privateLinkConfig) { setPrivateLinkConfig(privateLinkConfig); return this; } /** *

          * The platform-related details about the agent, such as the version number. *

          * * @param platform * The platform-related details about the agent, such as the version number. */ public void setPlatform(Platform platform) { this.platform = platform; } /** *

          * The platform-related details about the agent, such as the version number. *

          * * @return The platform-related details about the agent, such as the version number. */ public Platform getPlatform() { return this.platform; } /** *

          * The platform-related details about the agent, such as the version number. *

          * * @param platform * The platform-related details about the agent, such as the version number. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAgentResult withPlatform(Platform platform) { setPlatform(platform); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAgentArn() != null) sb.append("AgentArn: ").append(getAgentArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getLastConnectionTime() != null) sb.append("LastConnectionTime: ").append(getLastConnectionTime()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getEndpointType() != null) sb.append("EndpointType: ").append(getEndpointType()).append(","); if (getPrivateLinkConfig() != null) sb.append("PrivateLinkConfig: ").append(getPrivateLinkConfig()).append(","); if (getPlatform() != null) sb.append("Platform: ").append(getPlatform()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeAgentResult == false) return false; DescribeAgentResult other = (DescribeAgentResult) obj; if (other.getAgentArn() == null ^ this.getAgentArn() == null) return false; if (other.getAgentArn() != null && other.getAgentArn().equals(this.getAgentArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getLastConnectionTime() == null ^ this.getLastConnectionTime() == null) return false; if (other.getLastConnectionTime() != null && other.getLastConnectionTime().equals(this.getLastConnectionTime()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getEndpointType() == null ^ this.getEndpointType() == null) return false; if (other.getEndpointType() != null && other.getEndpointType().equals(this.getEndpointType()) == false) return false; if (other.getPrivateLinkConfig() == null ^ this.getPrivateLinkConfig() == null) return false; if (other.getPrivateLinkConfig() != null && other.getPrivateLinkConfig().equals(this.getPrivateLinkConfig()) == false) return false; if (other.getPlatform() == null ^ this.getPlatform() == null) return false; if (other.getPlatform() != null && other.getPlatform().equals(this.getPlatform()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAgentArn() == null) ? 0 : getAgentArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getLastConnectionTime() == null) ? 0 : getLastConnectionTime().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getEndpointType() == null) ? 0 : getEndpointType().hashCode()); hashCode = prime * hashCode + ((getPrivateLinkConfig() == null) ? 0 : getPrivateLinkConfig().hashCode()); hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode()); return hashCode; } @Override public DescribeAgentResult clone() { try { return (DescribeAgentResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy