/* * Copyright 2018-2023 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.applicationdiscovery.model; import java.io.Serializable; import javax.annotation.Generated; @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetDiscoverySummaryResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The number of servers discovered. *

*/ private Long servers; /** *

* The number of applications discovered. *

*/ private Long applications; /** *

* The number of servers mapped to applications. *

*/ private Long serversMappedToApplications; /** *

* The number of servers mapped to tags. *

*/ private Long serversMappedtoTags; /** *

* Details about discovered agents, including agent status and health. *

*/ private CustomerAgentInfo agentSummary; /** *

* Details about discovered connectors, including connector status and health. *

*/ private CustomerConnectorInfo connectorSummary; /** *

* Details about Migration Evaluator collectors, including collector status and health. *

*/ private CustomerMeCollectorInfo meCollectorSummary; /** *

* Details about Agentless Collector collectors, including status. *

*/ private CustomerAgentlessCollectorInfo agentlessCollectorSummary; /** *

* The number of servers discovered. *

* * @param servers * The number of servers discovered. */ public void setServers(Long servers) { this.servers = servers; } /** *

* The number of servers discovered. *

* * @return The number of servers discovered. */ public Long getServers() { return this.servers; } /** *

* The number of servers discovered. *

* * @param servers * The number of servers discovered. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDiscoverySummaryResult withServers(Long servers) { setServers(servers); return this; } /** *

* The number of applications discovered. *

* * @param applications * The number of applications discovered. */ public void setApplications(Long applications) { this.applications = applications; } /** *

* The number of applications discovered. *

* * @return The number of applications discovered. */ public Long getApplications() { return this.applications; } /** *

* The number of applications discovered. *

* * @param applications * The number of applications discovered. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDiscoverySummaryResult withApplications(Long applications) { setApplications(applications); return this; } /** *

* The number of servers mapped to applications. *

* * @param serversMappedToApplications * The number of servers mapped to applications. */ public void setServersMappedToApplications(Long serversMappedToApplications) { this.serversMappedToApplications = serversMappedToApplications; } /** *

* The number of servers mapped to applications. *

* * @return The number of servers mapped to applications. */ public Long getServersMappedToApplications() { return this.serversMappedToApplications; } /** *

* The number of servers mapped to applications. *

* * @param serversMappedToApplications * The number of servers mapped to applications. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDiscoverySummaryResult withServersMappedToApplications(Long serversMappedToApplications) { setServersMappedToApplications(serversMappedToApplications); return this; } /** *

* The number of servers mapped to tags. *

* * @param serversMappedtoTags * The number of servers mapped to tags. */ public void setServersMappedtoTags(Long serversMappedtoTags) { this.serversMappedtoTags = serversMappedtoTags; } /** *

* The number of servers mapped to tags. *

* * @return The number of servers mapped to tags. */ public Long getServersMappedtoTags() { return this.serversMappedtoTags; } /** *

* The number of servers mapped to tags. *

* * @param serversMappedtoTags * The number of servers mapped to tags. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDiscoverySummaryResult withServersMappedtoTags(Long serversMappedtoTags) { setServersMappedtoTags(serversMappedtoTags); return this; } /** *

* Details about discovered agents, including agent status and health. *

* * @param agentSummary * Details about discovered agents, including agent status and health. */ public void setAgentSummary(CustomerAgentInfo agentSummary) { this.agentSummary = agentSummary; } /** *

* Details about discovered agents, including agent status and health. *

* * @return Details about discovered agents, including agent status and health. */ public CustomerAgentInfo getAgentSummary() { return this.agentSummary; } /** *

* Details about discovered agents, including agent status and health. *

* * @param agentSummary * Details about discovered agents, including agent status and health. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDiscoverySummaryResult withAgentSummary(CustomerAgentInfo agentSummary) { setAgentSummary(agentSummary); return this; } /** *

* Details about discovered connectors, including connector status and health. *

* * @param connectorSummary * Details about discovered connectors, including connector status and health. */ public void setConnectorSummary(CustomerConnectorInfo connectorSummary) { this.connectorSummary = connectorSummary; } /** *

* Details about discovered connectors, including connector status and health. *

* * @return Details about discovered connectors, including connector status and health. */ public CustomerConnectorInfo getConnectorSummary() { return this.connectorSummary; } /** *

* Details about discovered connectors, including connector status and health. *

* * @param connectorSummary * Details about discovered connectors, including connector status and health. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDiscoverySummaryResult withConnectorSummary(CustomerConnectorInfo connectorSummary) { setConnectorSummary(connectorSummary); return this; } /** *

* Details about Migration Evaluator collectors, including collector status and health. *

* * @param meCollectorSummary * Details about Migration Evaluator collectors, including collector status and health. */ public void setMeCollectorSummary(CustomerMeCollectorInfo meCollectorSummary) { this.meCollectorSummary = meCollectorSummary; } /** *

* Details about Migration Evaluator collectors, including collector status and health. *

* * @return Details about Migration Evaluator collectors, including collector status and health. */ public CustomerMeCollectorInfo getMeCollectorSummary() { return this.meCollectorSummary; } /** *

* Details about Migration Evaluator collectors, including collector status and health. *

* * @param meCollectorSummary * Details about Migration Evaluator collectors, including collector status and health. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDiscoverySummaryResult withMeCollectorSummary(CustomerMeCollectorInfo meCollectorSummary) { setMeCollectorSummary(meCollectorSummary); return this; } /** *

* Details about Agentless Collector collectors, including status. *

* * @param agentlessCollectorSummary * Details about Agentless Collector collectors, including status. */ public void setAgentlessCollectorSummary(CustomerAgentlessCollectorInfo agentlessCollectorSummary) { this.agentlessCollectorSummary = agentlessCollectorSummary; } /** *

* Details about Agentless Collector collectors, including status. *

* * @return Details about Agentless Collector collectors, including status. */ public CustomerAgentlessCollectorInfo getAgentlessCollectorSummary() { return this.agentlessCollectorSummary; } /** *

* Details about Agentless Collector collectors, including status. *

* * @param agentlessCollectorSummary * Details about Agentless Collector collectors, including status. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDiscoverySummaryResult withAgentlessCollectorSummary(CustomerAgentlessCollectorInfo agentlessCollectorSummary) { setAgentlessCollectorSummary(agentlessCollectorSummary); 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 (getServers() != null) sb.append("Servers: ").append(getServers()).append(","); if (getApplications() != null) sb.append("Applications: ").append(getApplications()).append(","); if (getServersMappedToApplications() != null) sb.append("ServersMappedToApplications: ").append(getServersMappedToApplications()).append(","); if (getServersMappedtoTags() != null) sb.append("ServersMappedtoTags: ").append(getServersMappedtoTags()).append(","); if (getAgentSummary() != null) sb.append("AgentSummary: ").append(getAgentSummary()).append(","); if (getConnectorSummary() != null) sb.append("ConnectorSummary: ").append(getConnectorSummary()).append(","); if (getMeCollectorSummary() != null) sb.append("MeCollectorSummary: ").append(getMeCollectorSummary()).append(","); if (getAgentlessCollectorSummary() != null) sb.append("AgentlessCollectorSummary: ").append(getAgentlessCollectorSummary()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetDiscoverySummaryResult == false) return false; GetDiscoverySummaryResult other = (GetDiscoverySummaryResult) obj; if (other.getServers() == null ^ this.getServers() == null) return false; if (other.getServers() != null && other.getServers().equals(this.getServers()) == false) return false; if (other.getApplications() == null ^ this.getApplications() == null) return false; if (other.getApplications() != null && other.getApplications().equals(this.getApplications()) == false) return false; if (other.getServersMappedToApplications() == null ^ this.getServersMappedToApplications() == null) return false; if (other.getServersMappedToApplications() != null && other.getServersMappedToApplications().equals(this.getServersMappedToApplications()) == false) return false; if (other.getServersMappedtoTags() == null ^ this.getServersMappedtoTags() == null) return false; if (other.getServersMappedtoTags() != null && other.getServersMappedtoTags().equals(this.getServersMappedtoTags()) == false) return false; if (other.getAgentSummary() == null ^ this.getAgentSummary() == null) return false; if (other.getAgentSummary() != null && other.getAgentSummary().equals(this.getAgentSummary()) == false) return false; if (other.getConnectorSummary() == null ^ this.getConnectorSummary() == null) return false; if (other.getConnectorSummary() != null && other.getConnectorSummary().equals(this.getConnectorSummary()) == false) return false; if (other.getMeCollectorSummary() == null ^ this.getMeCollectorSummary() == null) return false; if (other.getMeCollectorSummary() != null && other.getMeCollectorSummary().equals(this.getMeCollectorSummary()) == false) return false; if (other.getAgentlessCollectorSummary() == null ^ this.getAgentlessCollectorSummary() == null) return false; if (other.getAgentlessCollectorSummary() != null && other.getAgentlessCollectorSummary().equals(this.getAgentlessCollectorSummary()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServers() == null) ? 0 : getServers().hashCode()); hashCode = prime * hashCode + ((getApplications() == null) ? 0 : getApplications().hashCode()); hashCode = prime * hashCode + ((getServersMappedToApplications() == null) ? 0 : getServersMappedToApplications().hashCode()); hashCode = prime * hashCode + ((getServersMappedtoTags() == null) ? 0 : getServersMappedtoTags().hashCode()); hashCode = prime * hashCode + ((getAgentSummary() == null) ? 0 : getAgentSummary().hashCode()); hashCode = prime * hashCode + ((getConnectorSummary() == null) ? 0 : getConnectorSummary().hashCode()); hashCode = prime * hashCode + ((getMeCollectorSummary() == null) ? 0 : getMeCollectorSummary().hashCode()); hashCode = prime * hashCode + ((getAgentlessCollectorSummary() == null) ? 0 : getAgentlessCollectorSummary().hashCode()); return hashCode; } @Override public GetDiscoverySummaryResult clone() { try { return (GetDiscoverySummaryResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }