com.amazonaws.services.networkmanager.model.StartRouteAnalysisRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-networkmanager 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.networkmanager.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 StartRouteAnalysisRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The ID of the global network.
*
*/
private String globalNetworkId;
/**
*
* The source from which traffic originates.
*
*/
private RouteAnalysisEndpointOptionsSpecification source;
/**
*
* The destination.
*
*/
private RouteAnalysisEndpointOptionsSpecification destination;
/**
*
* Indicates whether to analyze the return path. The default is false
.
*
*/
private Boolean includeReturnPath;
/**
*
* Indicates whether to include the location of middlebox appliances in the route analysis. The default is
* false
.
*
*/
private Boolean useMiddleboxes;
/**
*
* The ID of the global network.
*
*
* @param globalNetworkId
* The ID of the global network.
*/
public void setGlobalNetworkId(String globalNetworkId) {
this.globalNetworkId = globalNetworkId;
}
/**
*
* The ID of the global network.
*
*
* @return The ID of the global network.
*/
public String getGlobalNetworkId() {
return this.globalNetworkId;
}
/**
*
* The ID of the global network.
*
*
* @param globalNetworkId
* The ID of the global network.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartRouteAnalysisRequest withGlobalNetworkId(String globalNetworkId) {
setGlobalNetworkId(globalNetworkId);
return this;
}
/**
*
* The source from which traffic originates.
*
*
* @param source
* The source from which traffic originates.
*/
public void setSource(RouteAnalysisEndpointOptionsSpecification source) {
this.source = source;
}
/**
*
* The source from which traffic originates.
*
*
* @return The source from which traffic originates.
*/
public RouteAnalysisEndpointOptionsSpecification getSource() {
return this.source;
}
/**
*
* The source from which traffic originates.
*
*
* @param source
* The source from which traffic originates.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartRouteAnalysisRequest withSource(RouteAnalysisEndpointOptionsSpecification source) {
setSource(source);
return this;
}
/**
*
* The destination.
*
*
* @param destination
* The destination.
*/
public void setDestination(RouteAnalysisEndpointOptionsSpecification destination) {
this.destination = destination;
}
/**
*
* The destination.
*
*
* @return The destination.
*/
public RouteAnalysisEndpointOptionsSpecification getDestination() {
return this.destination;
}
/**
*
* The destination.
*
*
* @param destination
* The destination.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartRouteAnalysisRequest withDestination(RouteAnalysisEndpointOptionsSpecification destination) {
setDestination(destination);
return this;
}
/**
*
* Indicates whether to analyze the return path. The default is false
.
*
*
* @param includeReturnPath
* Indicates whether to analyze the return path. The default is false
.
*/
public void setIncludeReturnPath(Boolean includeReturnPath) {
this.includeReturnPath = includeReturnPath;
}
/**
*
* Indicates whether to analyze the return path. The default is false
.
*
*
* @return Indicates whether to analyze the return path. The default is false
.
*/
public Boolean getIncludeReturnPath() {
return this.includeReturnPath;
}
/**
*
* Indicates whether to analyze the return path. The default is false
.
*
*
* @param includeReturnPath
* Indicates whether to analyze the return path. The default is false
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartRouteAnalysisRequest withIncludeReturnPath(Boolean includeReturnPath) {
setIncludeReturnPath(includeReturnPath);
return this;
}
/**
*
* Indicates whether to analyze the return path. The default is false
.
*
*
* @return Indicates whether to analyze the return path. The default is false
.
*/
public Boolean isIncludeReturnPath() {
return this.includeReturnPath;
}
/**
*
* Indicates whether to include the location of middlebox appliances in the route analysis. The default is
* false
.
*
*
* @param useMiddleboxes
* Indicates whether to include the location of middlebox appliances in the route analysis. The default is
* false
.
*/
public void setUseMiddleboxes(Boolean useMiddleboxes) {
this.useMiddleboxes = useMiddleboxes;
}
/**
*
* Indicates whether to include the location of middlebox appliances in the route analysis. The default is
* false
.
*
*
* @return Indicates whether to include the location of middlebox appliances in the route analysis. The default is
* false
.
*/
public Boolean getUseMiddleboxes() {
return this.useMiddleboxes;
}
/**
*
* Indicates whether to include the location of middlebox appliances in the route analysis. The default is
* false
.
*
*
* @param useMiddleboxes
* Indicates whether to include the location of middlebox appliances in the route analysis. The default is
* false
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartRouteAnalysisRequest withUseMiddleboxes(Boolean useMiddleboxes) {
setUseMiddleboxes(useMiddleboxes);
return this;
}
/**
*
* Indicates whether to include the location of middlebox appliances in the route analysis. The default is
* false
.
*
*
* @return Indicates whether to include the location of middlebox appliances in the route analysis. The default is
* false
.
*/
public Boolean isUseMiddleboxes() {
return this.useMiddleboxes;
}
/**
* 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 (getGlobalNetworkId() != null)
sb.append("GlobalNetworkId: ").append(getGlobalNetworkId()).append(",");
if (getSource() != null)
sb.append("Source: ").append(getSource()).append(",");
if (getDestination() != null)
sb.append("Destination: ").append(getDestination()).append(",");
if (getIncludeReturnPath() != null)
sb.append("IncludeReturnPath: ").append(getIncludeReturnPath()).append(",");
if (getUseMiddleboxes() != null)
sb.append("UseMiddleboxes: ").append(getUseMiddleboxes());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof StartRouteAnalysisRequest == false)
return false;
StartRouteAnalysisRequest other = (StartRouteAnalysisRequest) obj;
if (other.getGlobalNetworkId() == null ^ this.getGlobalNetworkId() == null)
return false;
if (other.getGlobalNetworkId() != null && other.getGlobalNetworkId().equals(this.getGlobalNetworkId()) == false)
return false;
if (other.getSource() == null ^ this.getSource() == null)
return false;
if (other.getSource() != null && other.getSource().equals(this.getSource()) == false)
return false;
if (other.getDestination() == null ^ this.getDestination() == null)
return false;
if (other.getDestination() != null && other.getDestination().equals(this.getDestination()) == false)
return false;
if (other.getIncludeReturnPath() == null ^ this.getIncludeReturnPath() == null)
return false;
if (other.getIncludeReturnPath() != null && other.getIncludeReturnPath().equals(this.getIncludeReturnPath()) == false)
return false;
if (other.getUseMiddleboxes() == null ^ this.getUseMiddleboxes() == null)
return false;
if (other.getUseMiddleboxes() != null && other.getUseMiddleboxes().equals(this.getUseMiddleboxes()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getGlobalNetworkId() == null) ? 0 : getGlobalNetworkId().hashCode());
hashCode = prime * hashCode + ((getSource() == null) ? 0 : getSource().hashCode());
hashCode = prime * hashCode + ((getDestination() == null) ? 0 : getDestination().hashCode());
hashCode = prime * hashCode + ((getIncludeReturnPath() == null) ? 0 : getIncludeReturnPath().hashCode());
hashCode = prime * hashCode + ((getUseMiddleboxes() == null) ? 0 : getUseMiddleboxes().hashCode());
return hashCode;
}
@Override
public StartRouteAnalysisRequest clone() {
return (StartRouteAnalysisRequest) super.clone();
}
}