com.amazonaws.services.networkmanager.model.GetNetworkResourceRelationshipsRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-networkmanager Show documentation
/*
* 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.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 GetNetworkResourceRelationshipsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The ID of the global network.
*
*/
private String globalNetworkId;
/**
*
* The ID of a core network.
*
*/
private String coreNetworkId;
/**
*
* The ARN of the registered gateway.
*
*/
private String registeredGatewayArn;
/**
*
* The Amazon Web Services Region.
*
*/
private String awsRegion;
/**
*
* The Amazon Web Services account ID.
*
*/
private String accountId;
/**
*
* The resource type.
*
*
* The following are the supported resource types for Direct Connect:
*
*
* -
*
* dxcon
*
*
* -
*
* dx-gateway
*
*
* -
*
* dx-vif
*
*
*
*
* The following are the supported resource types for Network Manager:
*
*
* -
*
* attachment
*
*
* -
*
* connect-peer
*
*
* -
*
* connection
*
*
* -
*
* core-network
*
*
* -
*
* device
*
*
* -
*
* link
*
*
* -
*
* peering
*
*
* -
*
* site
*
*
*
*
* The following are the supported resource types for Amazon VPC:
*
*
* -
*
* customer-gateway
*
*
* -
*
* transit-gateway
*
*
* -
*
* transit-gateway-attachment
*
*
* -
*
* transit-gateway-connect-peer
*
*
* -
*
* transit-gateway-route-table
*
*
* -
*
* vpn-connection
*
*
*
*/
private String resourceType;
/**
*
* The ARN of the gateway.
*
*/
private String resourceArn;
/**
*
* The maximum number of results to return.
*
*/
private Integer maxResults;
/**
*
* The token for the next page of results.
*
*/
private String nextToken;
/**
*
* 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 GetNetworkResourceRelationshipsRequest withGlobalNetworkId(String globalNetworkId) {
setGlobalNetworkId(globalNetworkId);
return this;
}
/**
*
* The ID of a core network.
*
*
* @param coreNetworkId
* The ID of a core network.
*/
public void setCoreNetworkId(String coreNetworkId) {
this.coreNetworkId = coreNetworkId;
}
/**
*
* The ID of a core network.
*
*
* @return The ID of a core network.
*/
public String getCoreNetworkId() {
return this.coreNetworkId;
}
/**
*
* The ID of a core network.
*
*
* @param coreNetworkId
* The ID of a core network.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetNetworkResourceRelationshipsRequest withCoreNetworkId(String coreNetworkId) {
setCoreNetworkId(coreNetworkId);
return this;
}
/**
*
* The ARN of the registered gateway.
*
*
* @param registeredGatewayArn
* The ARN of the registered gateway.
*/
public void setRegisteredGatewayArn(String registeredGatewayArn) {
this.registeredGatewayArn = registeredGatewayArn;
}
/**
*
* The ARN of the registered gateway.
*
*
* @return The ARN of the registered gateway.
*/
public String getRegisteredGatewayArn() {
return this.registeredGatewayArn;
}
/**
*
* The ARN of the registered gateway.
*
*
* @param registeredGatewayArn
* The ARN of the registered gateway.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetNetworkResourceRelationshipsRequest withRegisteredGatewayArn(String registeredGatewayArn) {
setRegisteredGatewayArn(registeredGatewayArn);
return this;
}
/**
*
* The Amazon Web Services Region.
*
*
* @param awsRegion
* The Amazon Web Services Region.
*/
public void setAwsRegion(String awsRegion) {
this.awsRegion = awsRegion;
}
/**
*
* The Amazon Web Services Region.
*
*
* @return The Amazon Web Services Region.
*/
public String getAwsRegion() {
return this.awsRegion;
}
/**
*
* The Amazon Web Services Region.
*
*
* @param awsRegion
* The Amazon Web Services Region.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetNetworkResourceRelationshipsRequest withAwsRegion(String awsRegion) {
setAwsRegion(awsRegion);
return this;
}
/**
*
* The Amazon Web Services account ID.
*
*
* @param accountId
* The Amazon Web Services account ID.
*/
public void setAccountId(String accountId) {
this.accountId = accountId;
}
/**
*
* The Amazon Web Services account ID.
*
*
* @return The Amazon Web Services account ID.
*/
public String getAccountId() {
return this.accountId;
}
/**
*
* The Amazon Web Services account ID.
*
*
* @param accountId
* The Amazon Web Services account ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetNetworkResourceRelationshipsRequest withAccountId(String accountId) {
setAccountId(accountId);
return this;
}
/**
*
* The resource type.
*
*
* The following are the supported resource types for Direct Connect:
*
*
* -
*
* dxcon
*
*
* -
*
* dx-gateway
*
*
* -
*
* dx-vif
*
*
*
*
* The following are the supported resource types for Network Manager:
*
*
* -
*
* attachment
*
*
* -
*
* connect-peer
*
*
* -
*
* connection
*
*
* -
*
* core-network
*
*
* -
*
* device
*
*
* -
*
* link
*
*
* -
*
* peering
*
*
* -
*
* site
*
*
*
*
* The following are the supported resource types for Amazon VPC:
*
*
* -
*
* customer-gateway
*
*
* -
*
* transit-gateway
*
*
* -
*
* transit-gateway-attachment
*
*
* -
*
* transit-gateway-connect-peer
*
*
* -
*
* transit-gateway-route-table
*
*
* -
*
* vpn-connection
*
*
*
*
* @param resourceType
* The resource type.
*
* The following are the supported resource types for Direct Connect:
*
*
* -
*
* dxcon
*
*
* -
*
* dx-gateway
*
*
* -
*
* dx-vif
*
*
*
*
* The following are the supported resource types for Network Manager:
*
*
* -
*
* attachment
*
*
* -
*
* connect-peer
*
*
* -
*
* connection
*
*
* -
*
* core-network
*
*
* -
*
* device
*
*
* -
*
* link
*
*
* -
*
* peering
*
*
* -
*
* site
*
*
*
*
* The following are the supported resource types for Amazon VPC:
*
*
* -
*
* customer-gateway
*
*
* -
*
* transit-gateway
*
*
* -
*
* transit-gateway-attachment
*
*
* -
*
* transit-gateway-connect-peer
*
*
* -
*
* transit-gateway-route-table
*
*
* -
*
* vpn-connection
*
*
*/
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
/**
*
* The resource type.
*
*
* The following are the supported resource types for Direct Connect:
*
*
* -
*
* dxcon
*
*
* -
*
* dx-gateway
*
*
* -
*
* dx-vif
*
*
*
*
* The following are the supported resource types for Network Manager:
*
*
* -
*
* attachment
*
*
* -
*
* connect-peer
*
*
* -
*
* connection
*
*
* -
*
* core-network
*
*
* -
*
* device
*
*
* -
*
* link
*
*
* -
*
* peering
*
*
* -
*
* site
*
*
*
*
* The following are the supported resource types for Amazon VPC:
*
*
* -
*
* customer-gateway
*
*
* -
*
* transit-gateway
*
*
* -
*
* transit-gateway-attachment
*
*
* -
*
* transit-gateway-connect-peer
*
*
* -
*
* transit-gateway-route-table
*
*
* -
*
* vpn-connection
*
*
*
*
* @return The resource type.
*
* The following are the supported resource types for Direct Connect:
*
*
* -
*
* dxcon
*
*
* -
*
* dx-gateway
*
*
* -
*
* dx-vif
*
*
*
*
* The following are the supported resource types for Network Manager:
*
*
* -
*
* attachment
*
*
* -
*
* connect-peer
*
*
* -
*
* connection
*
*
* -
*
* core-network
*
*
* -
*
* device
*
*
* -
*
* link
*
*
* -
*
* peering
*
*
* -
*
* site
*
*
*
*
* The following are the supported resource types for Amazon VPC:
*
*
* -
*
* customer-gateway
*
*
* -
*
* transit-gateway
*
*
* -
*
* transit-gateway-attachment
*
*
* -
*
* transit-gateway-connect-peer
*
*
* -
*
* transit-gateway-route-table
*
*
* -
*
* vpn-connection
*
*
*/
public String getResourceType() {
return this.resourceType;
}
/**
*
* The resource type.
*
*
* The following are the supported resource types for Direct Connect:
*
*
* -
*
* dxcon
*
*
* -
*
* dx-gateway
*
*
* -
*
* dx-vif
*
*
*
*
* The following are the supported resource types for Network Manager:
*
*
* -
*
* attachment
*
*
* -
*
* connect-peer
*
*
* -
*
* connection
*
*
* -
*
* core-network
*
*
* -
*
* device
*
*
* -
*
* link
*
*
* -
*
* peering
*
*
* -
*
* site
*
*
*
*
* The following are the supported resource types for Amazon VPC:
*
*
* -
*
* customer-gateway
*
*
* -
*
* transit-gateway
*
*
* -
*
* transit-gateway-attachment
*
*
* -
*
* transit-gateway-connect-peer
*
*
* -
*
* transit-gateway-route-table
*
*
* -
*
* vpn-connection
*
*
*
*
* @param resourceType
* The resource type.
*
* The following are the supported resource types for Direct Connect:
*
*
* -
*
* dxcon
*
*
* -
*
* dx-gateway
*
*
* -
*
* dx-vif
*
*
*
*
* The following are the supported resource types for Network Manager:
*
*
* -
*
* attachment
*
*
* -
*
* connect-peer
*
*
* -
*
* connection
*
*
* -
*
* core-network
*
*
* -
*
* device
*
*
* -
*
* link
*
*
* -
*
* peering
*
*
* -
*
* site
*
*
*
*
* The following are the supported resource types for Amazon VPC:
*
*
* -
*
* customer-gateway
*
*
* -
*
* transit-gateway
*
*
* -
*
* transit-gateway-attachment
*
*
* -
*
* transit-gateway-connect-peer
*
*
* -
*
* transit-gateway-route-table
*
*
* -
*
* vpn-connection
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetNetworkResourceRelationshipsRequest withResourceType(String resourceType) {
setResourceType(resourceType);
return this;
}
/**
*
* The ARN of the gateway.
*
*
* @param resourceArn
* The ARN of the gateway.
*/
public void setResourceArn(String resourceArn) {
this.resourceArn = resourceArn;
}
/**
*
* The ARN of the gateway.
*
*
* @return The ARN of the gateway.
*/
public String getResourceArn() {
return this.resourceArn;
}
/**
*
* The ARN of the gateway.
*
*
* @param resourceArn
* The ARN of the gateway.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetNetworkResourceRelationshipsRequest withResourceArn(String resourceArn) {
setResourceArn(resourceArn);
return this;
}
/**
*
* The maximum number of results to return.
*
*
* @param maxResults
* The maximum number of results to return.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* The maximum number of results to return.
*
*
* @return The maximum number of results to return.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* The maximum number of results to return.
*
*
* @param maxResults
* The maximum number of results to return.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetNetworkResourceRelationshipsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* The token for the next page of results.
*
*
* @param nextToken
* The token for the next page of results.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* The token for the next page of results.
*
*
* @return The token for the next page of results.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* The token for the next page of results.
*
*
* @param nextToken
* The token for the next page of results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetNetworkResourceRelationshipsRequest 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 (getGlobalNetworkId() != null)
sb.append("GlobalNetworkId: ").append(getGlobalNetworkId()).append(",");
if (getCoreNetworkId() != null)
sb.append("CoreNetworkId: ").append(getCoreNetworkId()).append(",");
if (getRegisteredGatewayArn() != null)
sb.append("RegisteredGatewayArn: ").append(getRegisteredGatewayArn()).append(",");
if (getAwsRegion() != null)
sb.append("AwsRegion: ").append(getAwsRegion()).append(",");
if (getAccountId() != null)
sb.append("AccountId: ").append(getAccountId()).append(",");
if (getResourceType() != null)
sb.append("ResourceType: ").append(getResourceType()).append(",");
if (getResourceArn() != null)
sb.append("ResourceArn: ").append(getResourceArn()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).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 GetNetworkResourceRelationshipsRequest == false)
return false;
GetNetworkResourceRelationshipsRequest other = (GetNetworkResourceRelationshipsRequest) obj;
if (other.getGlobalNetworkId() == null ^ this.getGlobalNetworkId() == null)
return false;
if (other.getGlobalNetworkId() != null && other.getGlobalNetworkId().equals(this.getGlobalNetworkId()) == false)
return false;
if (other.getCoreNetworkId() == null ^ this.getCoreNetworkId() == null)
return false;
if (other.getCoreNetworkId() != null && other.getCoreNetworkId().equals(this.getCoreNetworkId()) == false)
return false;
if (other.getRegisteredGatewayArn() == null ^ this.getRegisteredGatewayArn() == null)
return false;
if (other.getRegisteredGatewayArn() != null && other.getRegisteredGatewayArn().equals(this.getRegisteredGatewayArn()) == false)
return false;
if (other.getAwsRegion() == null ^ this.getAwsRegion() == null)
return false;
if (other.getAwsRegion() != null && other.getAwsRegion().equals(this.getAwsRegion()) == 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.getResourceType() == null ^ this.getResourceType() == null)
return false;
if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false)
return false;
if (other.getResourceArn() == null ^ this.getResourceArn() == null)
return false;
if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false)
return false;
if (other.getMaxResults() == null ^ this.getMaxResults() == null)
return false;
if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == 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 + ((getGlobalNetworkId() == null) ? 0 : getGlobalNetworkId().hashCode());
hashCode = prime * hashCode + ((getCoreNetworkId() == null) ? 0 : getCoreNetworkId().hashCode());
hashCode = prime * hashCode + ((getRegisteredGatewayArn() == null) ? 0 : getRegisteredGatewayArn().hashCode());
hashCode = prime * hashCode + ((getAwsRegion() == null) ? 0 : getAwsRegion().hashCode());
hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode());
hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode());
hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
return hashCode;
}
@Override
public GetNetworkResourceRelationshipsRequest clone() {
return (GetNetworkResourceRelationshipsRequest) super.clone();
}
}