/* * Copyright 2018-2023 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.migrationhubconfig.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 DescribeHomeRegionControlsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ControlID
is a unique identifier string of your HomeRegionControl
object.
*
* The name of the home region you'd like to view. *
*/ private String homeRegion; /** *
* The target parameter specifies the identifier to which the home region is applied, which is always of type
* ACCOUNT
. It applies the home region to the current ACCOUNT
.
*
* The maximum number of filtering results to display per page. *
*/ private Integer maxResults; /** *
* If a NextToken
was returned by a previous call, more results are available. To retrieve the next
* page of results, make the call again using the returned token in NextToken
.
*
* The ControlID
is a unique identifier string of your HomeRegionControl
object.
*
ControlID
is a unique identifier string of your HomeRegionControl
object.
*/
public void setControlId(String controlId) {
this.controlId = controlId;
}
/**
*
* The ControlID
is a unique identifier string of your HomeRegionControl
object.
*
ControlID
is a unique identifier string of your HomeRegionControl
object.
*/
public String getControlId() {
return this.controlId;
}
/**
*
* The ControlID
is a unique identifier string of your HomeRegionControl
object.
*
ControlID
is a unique identifier string of your HomeRegionControl
object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeHomeRegionControlsRequest withControlId(String controlId) {
setControlId(controlId);
return this;
}
/**
* * The name of the home region you'd like to view. *
* * @param homeRegion * The name of the home region you'd like to view. */ public void setHomeRegion(String homeRegion) { this.homeRegion = homeRegion; } /** ** The name of the home region you'd like to view. *
* * @return The name of the home region you'd like to view. */ public String getHomeRegion() { return this.homeRegion; } /** ** The name of the home region you'd like to view. *
* * @param homeRegion * The name of the home region you'd like to view. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeHomeRegionControlsRequest withHomeRegion(String homeRegion) { setHomeRegion(homeRegion); return this; } /** *
* The target parameter specifies the identifier to which the home region is applied, which is always of type
* ACCOUNT
. It applies the home region to the current ACCOUNT
.
*
ACCOUNT
. It applies the home region to the current ACCOUNT
.
*/
public void setTarget(Target target) {
this.target = target;
}
/**
*
* The target parameter specifies the identifier to which the home region is applied, which is always of type
* ACCOUNT
. It applies the home region to the current ACCOUNT
.
*
ACCOUNT
. It applies the home region to the current ACCOUNT
.
*/
public Target getTarget() {
return this.target;
}
/**
*
* The target parameter specifies the identifier to which the home region is applied, which is always of type
* ACCOUNT
. It applies the home region to the current ACCOUNT
.
*
ACCOUNT
. It applies the home region to the current ACCOUNT
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeHomeRegionControlsRequest withTarget(Target target) {
setTarget(target);
return this;
}
/**
* * The maximum number of filtering results to display per page. *
* * @param maxResults * The maximum number of filtering results to display per page. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** ** The maximum number of filtering results to display per page. *
* * @return The maximum number of filtering results to display per page. */ public Integer getMaxResults() { return this.maxResults; } /** ** The maximum number of filtering results to display per page. *
* * @param maxResults * The maximum number of filtering results to display per page. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeHomeRegionControlsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *
* If a NextToken
was returned by a previous call, more results are available. To retrieve the next
* page of results, make the call again using the returned token in NextToken
.
*
NextToken
was returned by a previous call, more results are available. To retrieve the
* next page of results, make the call again using the returned token in NextToken
.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* If a NextToken
was returned by a previous call, more results are available. To retrieve the next
* page of results, make the call again using the returned token in NextToken
.
*
NextToken
was returned by a previous call, more results are available. To retrieve the
* next page of results, make the call again using the returned token in NextToken
.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* If a NextToken
was returned by a previous call, more results are available. To retrieve the next
* page of results, make the call again using the returned token in NextToken
.
*
NextToken
was returned by a previous call, more results are available. To retrieve the
* next page of results, make the call again using the returned token in NextToken
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeHomeRegionControlsRequest 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 (getControlId() != null)
sb.append("ControlId: ").append(getControlId()).append(",");
if (getHomeRegion() != null)
sb.append("HomeRegion: ").append(getHomeRegion()).append(",");
if (getTarget() != null)
sb.append("Target: ").append(getTarget()).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 DescribeHomeRegionControlsRequest == false)
return false;
DescribeHomeRegionControlsRequest other = (DescribeHomeRegionControlsRequest) obj;
if (other.getControlId() == null ^ this.getControlId() == null)
return false;
if (other.getControlId() != null && other.getControlId().equals(this.getControlId()) == false)
return false;
if (other.getHomeRegion() == null ^ this.getHomeRegion() == null)
return false;
if (other.getHomeRegion() != null && other.getHomeRegion().equals(this.getHomeRegion()) == false)
return false;
if (other.getTarget() == null ^ this.getTarget() == null)
return false;
if (other.getTarget() != null && other.getTarget().equals(this.getTarget()) == 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 + ((getControlId() == null) ? 0 : getControlId().hashCode());
hashCode = prime * hashCode + ((getHomeRegion() == null) ? 0 : getHomeRegion().hashCode());
hashCode = prime * hashCode + ((getTarget() == null) ? 0 : getTarget().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
return hashCode;
}
@Override
public DescribeHomeRegionControlsRequest clone() {
return (DescribeHomeRegionControlsRequest) super.clone();
}
}