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

com.amazonaws.services.xray.model.GetInsightImpactGraphResult 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 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.xray.model;

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

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

    /**
     * 

* The insight's unique identifier. *

*/ private String insightId; /** *

* The provided start time. *

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

* The provided end time. *

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

* The time, in Unix seconds, at which the service graph started. *

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

* The time, in Unix seconds, at which the service graph ended. *

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

* The Amazon Web Services instrumented services related to the insight. *

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

* Pagination token. *

*/ private String nextToken; /** *

* The insight's unique identifier. *

* * @param insightId * The insight's unique identifier. */ public void setInsightId(String insightId) { this.insightId = insightId; } /** *

* The insight's unique identifier. *

* * @return The insight's unique identifier. */ public String getInsightId() { return this.insightId; } /** *

* The insight's unique identifier. *

* * @param insightId * The insight's unique identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInsightImpactGraphResult withInsightId(String insightId) { setInsightId(insightId); return this; } /** *

* The provided start time. *

* * @param startTime * The provided start time. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* The provided start time. *

* * @return The provided start time. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* The provided start time. *

* * @param startTime * The provided start time. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInsightImpactGraphResult withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* The provided end time. *

* * @param endTime * The provided end time. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* The provided end time. *

* * @return The provided end time. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* The provided end time. *

* * @param endTime * The provided end time. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInsightImpactGraphResult withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* The time, in Unix seconds, at which the service graph started. *

* * @param serviceGraphStartTime * The time, in Unix seconds, at which the service graph started. */ public void setServiceGraphStartTime(java.util.Date serviceGraphStartTime) { this.serviceGraphStartTime = serviceGraphStartTime; } /** *

* The time, in Unix seconds, at which the service graph started. *

* * @return The time, in Unix seconds, at which the service graph started. */ public java.util.Date getServiceGraphStartTime() { return this.serviceGraphStartTime; } /** *

* The time, in Unix seconds, at which the service graph started. *

* * @param serviceGraphStartTime * The time, in Unix seconds, at which the service graph started. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInsightImpactGraphResult withServiceGraphStartTime(java.util.Date serviceGraphStartTime) { setServiceGraphStartTime(serviceGraphStartTime); return this; } /** *

* The time, in Unix seconds, at which the service graph ended. *

* * @param serviceGraphEndTime * The time, in Unix seconds, at which the service graph ended. */ public void setServiceGraphEndTime(java.util.Date serviceGraphEndTime) { this.serviceGraphEndTime = serviceGraphEndTime; } /** *

* The time, in Unix seconds, at which the service graph ended. *

* * @return The time, in Unix seconds, at which the service graph ended. */ public java.util.Date getServiceGraphEndTime() { return this.serviceGraphEndTime; } /** *

* The time, in Unix seconds, at which the service graph ended. *

* * @param serviceGraphEndTime * The time, in Unix seconds, at which the service graph ended. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInsightImpactGraphResult withServiceGraphEndTime(java.util.Date serviceGraphEndTime) { setServiceGraphEndTime(serviceGraphEndTime); return this; } /** *

* The Amazon Web Services instrumented services related to the insight. *

* * @return The Amazon Web Services instrumented services related to the insight. */ public java.util.List getServices() { return services; } /** *

* The Amazon Web Services instrumented services related to the insight. *

* * @param services * The Amazon Web Services instrumented services related to the insight. */ public void setServices(java.util.Collection services) { if (services == null) { this.services = null; return; } this.services = new java.util.ArrayList(services); } /** *

* The Amazon Web Services instrumented services related to the insight. *

*

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

* * @param services * The Amazon Web Services instrumented services related to the insight. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInsightImpactGraphResult withServices(InsightImpactGraphService... services) { if (this.services == null) { setServices(new java.util.ArrayList(services.length)); } for (InsightImpactGraphService ele : services) { this.services.add(ele); } return this; } /** *

* The Amazon Web Services instrumented services related to the insight. *

* * @param services * The Amazon Web Services instrumented services related to the insight. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInsightImpactGraphResult withServices(java.util.Collection services) { setServices(services); return this; } /** *

* Pagination token. *

* * @param nextToken * Pagination token. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* Pagination token. *

* * @return Pagination token. */ public String getNextToken() { return this.nextToken; } /** *

* Pagination token. *

* * @param nextToken * Pagination token. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInsightImpactGraphResult withNextToken(String nextToken) { setNextToken(nextToken); 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 (getInsightId() != null) sb.append("InsightId: ").append(getInsightId()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getServiceGraphStartTime() != null) sb.append("ServiceGraphStartTime: ").append(getServiceGraphStartTime()).append(","); if (getServiceGraphEndTime() != null) sb.append("ServiceGraphEndTime: ").append(getServiceGraphEndTime()).append(","); if (getServices() != null) sb.append("Services: ").append(getServices()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetInsightImpactGraphResult == false) return false; GetInsightImpactGraphResult other = (GetInsightImpactGraphResult) obj; if (other.getInsightId() == null ^ this.getInsightId() == null) return false; if (other.getInsightId() != null && other.getInsightId().equals(this.getInsightId()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getServiceGraphStartTime() == null ^ this.getServiceGraphStartTime() == null) return false; if (other.getServiceGraphStartTime() != null && other.getServiceGraphStartTime().equals(this.getServiceGraphStartTime()) == false) return false; if (other.getServiceGraphEndTime() == null ^ this.getServiceGraphEndTime() == null) return false; if (other.getServiceGraphEndTime() != null && other.getServiceGraphEndTime().equals(this.getServiceGraphEndTime()) == false) return false; if (other.getServices() == null ^ this.getServices() == null) return false; if (other.getServices() != null && other.getServices().equals(this.getServices()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInsightId() == null) ? 0 : getInsightId().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getServiceGraphStartTime() == null) ? 0 : getServiceGraphStartTime().hashCode()); hashCode = prime * hashCode + ((getServiceGraphEndTime() == null) ? 0 : getServiceGraphEndTime().hashCode()); hashCode = prime * hashCode + ((getServices() == null) ? 0 : getServices().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public GetInsightImpactGraphResult clone() { try { return (GetInsightImpactGraphResult) 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