com.amazonaws.services.amplifybackend.model.ImportBackendAuthRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-amplifybackend 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.amplifybackend.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* The request body for ImportBackendAuth.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ImportBackendAuthRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The app ID.
*
*/
private String appId;
/**
*
* The name of the backend environment.
*
*/
private String backendEnvironmentName;
/**
*
* The ID of the Amazon Cognito identity pool.
*
*/
private String identityPoolId;
/**
*
* The ID of the Amazon Cognito native client.
*
*/
private String nativeClientId;
/**
*
* The ID of the Amazon Cognito user pool.
*
*/
private String userPoolId;
/**
*
* The ID of the Amazon Cognito web client.
*
*/
private String webClientId;
/**
*
* The app ID.
*
*
* @param appId
* The app ID.
*/
public void setAppId(String appId) {
this.appId = appId;
}
/**
*
* The app ID.
*
*
* @return The app ID.
*/
public String getAppId() {
return this.appId;
}
/**
*
* The app ID.
*
*
* @param appId
* The app ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportBackendAuthRequest withAppId(String appId) {
setAppId(appId);
return this;
}
/**
*
* The name of the backend environment.
*
*
* @param backendEnvironmentName
* The name of the backend environment.
*/
public void setBackendEnvironmentName(String backendEnvironmentName) {
this.backendEnvironmentName = backendEnvironmentName;
}
/**
*
* The name of the backend environment.
*
*
* @return The name of the backend environment.
*/
public String getBackendEnvironmentName() {
return this.backendEnvironmentName;
}
/**
*
* The name of the backend environment.
*
*
* @param backendEnvironmentName
* The name of the backend environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportBackendAuthRequest withBackendEnvironmentName(String backendEnvironmentName) {
setBackendEnvironmentName(backendEnvironmentName);
return this;
}
/**
*
* The ID of the Amazon Cognito identity pool.
*
*
* @param identityPoolId
* The ID of the Amazon Cognito identity pool.
*/
public void setIdentityPoolId(String identityPoolId) {
this.identityPoolId = identityPoolId;
}
/**
*
* The ID of the Amazon Cognito identity pool.
*
*
* @return The ID of the Amazon Cognito identity pool.
*/
public String getIdentityPoolId() {
return this.identityPoolId;
}
/**
*
* The ID of the Amazon Cognito identity pool.
*
*
* @param identityPoolId
* The ID of the Amazon Cognito identity pool.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportBackendAuthRequest withIdentityPoolId(String identityPoolId) {
setIdentityPoolId(identityPoolId);
return this;
}
/**
*
* The ID of the Amazon Cognito native client.
*
*
* @param nativeClientId
* The ID of the Amazon Cognito native client.
*/
public void setNativeClientId(String nativeClientId) {
this.nativeClientId = nativeClientId;
}
/**
*
* The ID of the Amazon Cognito native client.
*
*
* @return The ID of the Amazon Cognito native client.
*/
public String getNativeClientId() {
return this.nativeClientId;
}
/**
*
* The ID of the Amazon Cognito native client.
*
*
* @param nativeClientId
* The ID of the Amazon Cognito native client.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportBackendAuthRequest withNativeClientId(String nativeClientId) {
setNativeClientId(nativeClientId);
return this;
}
/**
*
* The ID of the Amazon Cognito user pool.
*
*
* @param userPoolId
* The ID of the Amazon Cognito user pool.
*/
public void setUserPoolId(String userPoolId) {
this.userPoolId = userPoolId;
}
/**
*
* The ID of the Amazon Cognito user pool.
*
*
* @return The ID of the Amazon Cognito user pool.
*/
public String getUserPoolId() {
return this.userPoolId;
}
/**
*
* The ID of the Amazon Cognito user pool.
*
*
* @param userPoolId
* The ID of the Amazon Cognito user pool.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportBackendAuthRequest withUserPoolId(String userPoolId) {
setUserPoolId(userPoolId);
return this;
}
/**
*
* The ID of the Amazon Cognito web client.
*
*
* @param webClientId
* The ID of the Amazon Cognito web client.
*/
public void setWebClientId(String webClientId) {
this.webClientId = webClientId;
}
/**
*
* The ID of the Amazon Cognito web client.
*
*
* @return The ID of the Amazon Cognito web client.
*/
public String getWebClientId() {
return this.webClientId;
}
/**
*
* The ID of the Amazon Cognito web client.
*
*
* @param webClientId
* The ID of the Amazon Cognito web client.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportBackendAuthRequest withWebClientId(String webClientId) {
setWebClientId(webClientId);
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 (getAppId() != null)
sb.append("AppId: ").append(getAppId()).append(",");
if (getBackendEnvironmentName() != null)
sb.append("BackendEnvironmentName: ").append(getBackendEnvironmentName()).append(",");
if (getIdentityPoolId() != null)
sb.append("IdentityPoolId: ").append(getIdentityPoolId()).append(",");
if (getNativeClientId() != null)
sb.append("NativeClientId: ").append(getNativeClientId()).append(",");
if (getUserPoolId() != null)
sb.append("UserPoolId: ").append(getUserPoolId()).append(",");
if (getWebClientId() != null)
sb.append("WebClientId: ").append(getWebClientId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ImportBackendAuthRequest == false)
return false;
ImportBackendAuthRequest other = (ImportBackendAuthRequest) obj;
if (other.getAppId() == null ^ this.getAppId() == null)
return false;
if (other.getAppId() != null && other.getAppId().equals(this.getAppId()) == false)
return false;
if (other.getBackendEnvironmentName() == null ^ this.getBackendEnvironmentName() == null)
return false;
if (other.getBackendEnvironmentName() != null && other.getBackendEnvironmentName().equals(this.getBackendEnvironmentName()) == false)
return false;
if (other.getIdentityPoolId() == null ^ this.getIdentityPoolId() == null)
return false;
if (other.getIdentityPoolId() != null && other.getIdentityPoolId().equals(this.getIdentityPoolId()) == false)
return false;
if (other.getNativeClientId() == null ^ this.getNativeClientId() == null)
return false;
if (other.getNativeClientId() != null && other.getNativeClientId().equals(this.getNativeClientId()) == false)
return false;
if (other.getUserPoolId() == null ^ this.getUserPoolId() == null)
return false;
if (other.getUserPoolId() != null && other.getUserPoolId().equals(this.getUserPoolId()) == false)
return false;
if (other.getWebClientId() == null ^ this.getWebClientId() == null)
return false;
if (other.getWebClientId() != null && other.getWebClientId().equals(this.getWebClientId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAppId() == null) ? 0 : getAppId().hashCode());
hashCode = prime * hashCode + ((getBackendEnvironmentName() == null) ? 0 : getBackendEnvironmentName().hashCode());
hashCode = prime * hashCode + ((getIdentityPoolId() == null) ? 0 : getIdentityPoolId().hashCode());
hashCode = prime * hashCode + ((getNativeClientId() == null) ? 0 : getNativeClientId().hashCode());
hashCode = prime * hashCode + ((getUserPoolId() == null) ? 0 : getUserPoolId().hashCode());
hashCode = prime * hashCode + ((getWebClientId() == null) ? 0 : getWebClientId().hashCode());
return hashCode;
}
@Override
public ImportBackendAuthRequest clone() {
return (ImportBackendAuthRequest) super.clone();
}
}