com.amazonaws.services.xray.model.GetServiceGraphRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-xray Show documentation
/*
* Copyright 2017-2022 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.AmazonWebServiceRequest;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetServiceGraphRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The start of the time frame for which to generate a graph.
*
*/
private java.util.Date startTime;
/**
*
* The end of the timeframe for which to generate a graph.
*
*/
private java.util.Date endTime;
/**
*
* The name of a group based on which you want to generate a graph.
*
*/
private String groupName;
/**
*
* The Amazon Resource Name (ARN) of a group based on which you want to generate a graph.
*
*/
private String groupARN;
/**
*
* Pagination token.
*
*/
private String nextToken;
/**
*
* The start of the time frame for which to generate a graph.
*
*
* @param startTime
* The start of the time frame for which to generate a graph.
*/
public void setStartTime(java.util.Date startTime) {
this.startTime = startTime;
}
/**
*
* The start of the time frame for which to generate a graph.
*
*
* @return The start of the time frame for which to generate a graph.
*/
public java.util.Date getStartTime() {
return this.startTime;
}
/**
*
* The start of the time frame for which to generate a graph.
*
*
* @param startTime
* The start of the time frame for which to generate a graph.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetServiceGraphRequest withStartTime(java.util.Date startTime) {
setStartTime(startTime);
return this;
}
/**
*
* The end of the timeframe for which to generate a graph.
*
*
* @param endTime
* The end of the timeframe for which to generate a graph.
*/
public void setEndTime(java.util.Date endTime) {
this.endTime = endTime;
}
/**
*
* The end of the timeframe for which to generate a graph.
*
*
* @return The end of the timeframe for which to generate a graph.
*/
public java.util.Date getEndTime() {
return this.endTime;
}
/**
*
* The end of the timeframe for which to generate a graph.
*
*
* @param endTime
* The end of the timeframe for which to generate a graph.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetServiceGraphRequest withEndTime(java.util.Date endTime) {
setEndTime(endTime);
return this;
}
/**
*
* The name of a group based on which you want to generate a graph.
*
*
* @param groupName
* The name of a group based on which you want to generate a graph.
*/
public void setGroupName(String groupName) {
this.groupName = groupName;
}
/**
*
* The name of a group based on which you want to generate a graph.
*
*
* @return The name of a group based on which you want to generate a graph.
*/
public String getGroupName() {
return this.groupName;
}
/**
*
* The name of a group based on which you want to generate a graph.
*
*
* @param groupName
* The name of a group based on which you want to generate a graph.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetServiceGraphRequest withGroupName(String groupName) {
setGroupName(groupName);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of a group based on which you want to generate a graph.
*
*
* @param groupARN
* The Amazon Resource Name (ARN) of a group based on which you want to generate a graph.
*/
public void setGroupARN(String groupARN) {
this.groupARN = groupARN;
}
/**
*
* The Amazon Resource Name (ARN) of a group based on which you want to generate a graph.
*
*
* @return The Amazon Resource Name (ARN) of a group based on which you want to generate a graph.
*/
public String getGroupARN() {
return this.groupARN;
}
/**
*
* The Amazon Resource Name (ARN) of a group based on which you want to generate a graph.
*
*
* @param groupARN
* The Amazon Resource Name (ARN) of a group based on which you want to generate a graph.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetServiceGraphRequest withGroupARN(String groupARN) {
setGroupARN(groupARN);
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 GetServiceGraphRequest 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 (getStartTime() != null)
sb.append("StartTime: ").append(getStartTime()).append(",");
if (getEndTime() != null)
sb.append("EndTime: ").append(getEndTime()).append(",");
if (getGroupName() != null)
sb.append("GroupName: ").append(getGroupName()).append(",");
if (getGroupARN() != null)
sb.append("GroupARN: ").append(getGroupARN()).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 GetServiceGraphRequest == false)
return false;
GetServiceGraphRequest other = (GetServiceGraphRequest) obj;
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.getGroupName() == null ^ this.getGroupName() == null)
return false;
if (other.getGroupName() != null && other.getGroupName().equals(this.getGroupName()) == false)
return false;
if (other.getGroupARN() == null ^ this.getGroupARN() == null)
return false;
if (other.getGroupARN() != null && other.getGroupARN().equals(this.getGroupARN()) == 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 + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
hashCode = prime * hashCode + ((getGroupName() == null) ? 0 : getGroupName().hashCode());
hashCode = prime * hashCode + ((getGroupARN() == null) ? 0 : getGroupARN().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
return hashCode;
}
@Override
public GetServiceGraphRequest clone() {
return (GetServiceGraphRequest) super.clone();
}
}