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

com.amazonaws.services.xray.model.FaultRootCauseService Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2016-2021 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.xray.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* A collection of fields identifying the services in a trace summary fault. *

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

* The service name. *

*/ private String name; /** *

* A collection of associated service names. *

*/ private java.util.List names; /** *

* The type associated to the service. *

*/ private String type; /** *

* The account ID associated to the service. *

*/ private String accountId; /** *

* The path of root cause entities found on the service. *

*/ private java.util.List entityPath; /** *

* A Boolean value indicating if the service is inferred from the trace. *

*/ private Boolean inferred; /** *

* The service name. *

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

* The service name. *

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

* The service name. *

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

* A collection of associated service names. *

* * @return A collection of associated service names. */ public java.util.List getNames() { return names; } /** *

* A collection of associated service names. *

* * @param names * A collection of associated service names. */ public void setNames(java.util.Collection names) { if (names == null) { this.names = null; return; } this.names = new java.util.ArrayList(names); } /** *

* A collection of associated service names. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setNames(java.util.Collection)} or {@link #withNames(java.util.Collection)} if you want to override the * existing values. *

* * @param names * A collection of associated service names. * @return Returns a reference to this object so that method calls can be chained together. */ public FaultRootCauseService withNames(String... names) { if (this.names == null) { setNames(new java.util.ArrayList(names.length)); } for (String ele : names) { this.names.add(ele); } return this; } /** *

* A collection of associated service names. *

* * @param names * A collection of associated service names. * @return Returns a reference to this object so that method calls can be chained together. */ public FaultRootCauseService withNames(java.util.Collection names) { setNames(names); return this; } /** *

* The type associated to the service. *

* * @param type * The type associated to the service. */ public void setType(String type) { this.type = type; } /** *

* The type associated to the service. *

* * @return The type associated to the service. */ public String getType() { return this.type; } /** *

* The type associated to the service. *

* * @param type * The type associated to the service. * @return Returns a reference to this object so that method calls can be chained together. */ public FaultRootCauseService withType(String type) { setType(type); return this; } /** *

* The account ID associated to the service. *

* * @param accountId * The account ID associated to the service. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** *

* The account ID associated to the service. *

* * @return The account ID associated to the service. */ public String getAccountId() { return this.accountId; } /** *

* The account ID associated to the service. *

* * @param accountId * The account ID associated to the service. * @return Returns a reference to this object so that method calls can be chained together. */ public FaultRootCauseService withAccountId(String accountId) { setAccountId(accountId); return this; } /** *

* The path of root cause entities found on the service. *

* * @return The path of root cause entities found on the service. */ public java.util.List getEntityPath() { return entityPath; } /** *

* The path of root cause entities found on the service. *

* * @param entityPath * The path of root cause entities found on the service. */ public void setEntityPath(java.util.Collection entityPath) { if (entityPath == null) { this.entityPath = null; return; } this.entityPath = new java.util.ArrayList(entityPath); } /** *

* The path of root cause entities found on the service. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setEntityPath(java.util.Collection)} or {@link #withEntityPath(java.util.Collection)} if you want to * override the existing values. *

* * @param entityPath * The path of root cause entities found on the service. * @return Returns a reference to this object so that method calls can be chained together. */ public FaultRootCauseService withEntityPath(FaultRootCauseEntity... entityPath) { if (this.entityPath == null) { setEntityPath(new java.util.ArrayList(entityPath.length)); } for (FaultRootCauseEntity ele : entityPath) { this.entityPath.add(ele); } return this; } /** *

* The path of root cause entities found on the service. *

* * @param entityPath * The path of root cause entities found on the service. * @return Returns a reference to this object so that method calls can be chained together. */ public FaultRootCauseService withEntityPath(java.util.Collection entityPath) { setEntityPath(entityPath); return this; } /** *

* A Boolean value indicating if the service is inferred from the trace. *

* * @param inferred * A Boolean value indicating if the service is inferred from the trace. */ public void setInferred(Boolean inferred) { this.inferred = inferred; } /** *

* A Boolean value indicating if the service is inferred from the trace. *

* * @return A Boolean value indicating if the service is inferred from the trace. */ public Boolean getInferred() { return this.inferred; } /** *

* A Boolean value indicating if the service is inferred from the trace. *

* * @param inferred * A Boolean value indicating if the service is inferred from the trace. * @return Returns a reference to this object so that method calls can be chained together. */ public FaultRootCauseService withInferred(Boolean inferred) { setInferred(inferred); return this; } /** *

* A Boolean value indicating if the service is inferred from the trace. *

* * @return A Boolean value indicating if the service is inferred from the trace. */ public Boolean isInferred() { return this.inferred; } /** * 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getNames() != null) sb.append("Names: ").append(getNames()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getAccountId() != null) sb.append("AccountId: ").append(getAccountId()).append(","); if (getEntityPath() != null) sb.append("EntityPath: ").append(getEntityPath()).append(","); if (getInferred() != null) sb.append("Inferred: ").append(getInferred()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FaultRootCauseService == false) return false; FaultRootCauseService other = (FaultRootCauseService) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getNames() == null ^ this.getNames() == null) return false; if (other.getNames() != null && other.getNames().equals(this.getNames()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getAccountId() == null ^ this.getAccountId() == null) return false; if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false) return false; if (other.getEntityPath() == null ^ this.getEntityPath() == null) return false; if (other.getEntityPath() != null && other.getEntityPath().equals(this.getEntityPath()) == false) return false; if (other.getInferred() == null ^ this.getInferred() == null) return false; if (other.getInferred() != null && other.getInferred().equals(this.getInferred()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getNames() == null) ? 0 : getNames().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode()); hashCode = prime * hashCode + ((getEntityPath() == null) ? 0 : getEntityPath().hashCode()); hashCode = prime * hashCode + ((getInferred() == null) ? 0 : getInferred().hashCode()); return hashCode; } @Override public FaultRootCauseService clone() { try { return (FaultRootCauseService) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.xray.model.transform.FaultRootCauseServiceMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy