com.amazonaws.services.appfabric.model.UpdateAppAuthorizationRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-appfabric 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.appfabric.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 UpdateAppAuthorizationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.
*
*/
private String appBundleIdentifier;
/**
*
* The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the
* request.
*
*/
private String appAuthorizationIdentifier;
/**
*
* Contains credentials for the application, such as an API key or OAuth2 client ID and secret.
*
*
* Specify credentials that match the authorization type of the app authorization to update. For example, if the
* authorization type of the app authorization is OAuth2 (oauth2
), then you should provide only the
* OAuth2 credentials.
*
*/
private Credential credential;
/**
*
* Contains information about an application tenant, such as the application display name and identifier.
*
*/
private Tenant tenant;
/**
*
* The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.
*
*
* @param appBundleIdentifier
* The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the
* request.
*/
public void setAppBundleIdentifier(String appBundleIdentifier) {
this.appBundleIdentifier = appBundleIdentifier;
}
/**
*
* The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.
*
*
* @return The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the
* request.
*/
public String getAppBundleIdentifier() {
return this.appBundleIdentifier;
}
/**
*
* The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.
*
*
* @param appBundleIdentifier
* The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the
* request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAppAuthorizationRequest withAppBundleIdentifier(String appBundleIdentifier) {
setAppBundleIdentifier(appBundleIdentifier);
return this;
}
/**
*
* The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the
* request.
*
*
* @param appAuthorizationIdentifier
* The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for
* the request.
*/
public void setAppAuthorizationIdentifier(String appAuthorizationIdentifier) {
this.appAuthorizationIdentifier = appAuthorizationIdentifier;
}
/**
*
* The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the
* request.
*
*
* @return The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for
* the request.
*/
public String getAppAuthorizationIdentifier() {
return this.appAuthorizationIdentifier;
}
/**
*
* The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the
* request.
*
*
* @param appAuthorizationIdentifier
* The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for
* the request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAppAuthorizationRequest withAppAuthorizationIdentifier(String appAuthorizationIdentifier) {
setAppAuthorizationIdentifier(appAuthorizationIdentifier);
return this;
}
/**
*
* Contains credentials for the application, such as an API key or OAuth2 client ID and secret.
*
*
* Specify credentials that match the authorization type of the app authorization to update. For example, if the
* authorization type of the app authorization is OAuth2 (oauth2
), then you should provide only the
* OAuth2 credentials.
*
*
* @param credential
* Contains credentials for the application, such as an API key or OAuth2 client ID and secret.
*
* Specify credentials that match the authorization type of the app authorization to update. For example, if
* the authorization type of the app authorization is OAuth2 (oauth2
), then you should provide
* only the OAuth2 credentials.
*/
public void setCredential(Credential credential) {
this.credential = credential;
}
/**
*
* Contains credentials for the application, such as an API key or OAuth2 client ID and secret.
*
*
* Specify credentials that match the authorization type of the app authorization to update. For example, if the
* authorization type of the app authorization is OAuth2 (oauth2
), then you should provide only the
* OAuth2 credentials.
*
*
* @return Contains credentials for the application, such as an API key or OAuth2 client ID and secret.
*
* Specify credentials that match the authorization type of the app authorization to update. For example, if
* the authorization type of the app authorization is OAuth2 (oauth2
), then you should provide
* only the OAuth2 credentials.
*/
public Credential getCredential() {
return this.credential;
}
/**
*
* Contains credentials for the application, such as an API key or OAuth2 client ID and secret.
*
*
* Specify credentials that match the authorization type of the app authorization to update. For example, if the
* authorization type of the app authorization is OAuth2 (oauth2
), then you should provide only the
* OAuth2 credentials.
*
*
* @param credential
* Contains credentials for the application, such as an API key or OAuth2 client ID and secret.
*
* Specify credentials that match the authorization type of the app authorization to update. For example, if
* the authorization type of the app authorization is OAuth2 (oauth2
), then you should provide
* only the OAuth2 credentials.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAppAuthorizationRequest withCredential(Credential credential) {
setCredential(credential);
return this;
}
/**
*
* Contains information about an application tenant, such as the application display name and identifier.
*
*
* @param tenant
* Contains information about an application tenant, such as the application display name and identifier.
*/
public void setTenant(Tenant tenant) {
this.tenant = tenant;
}
/**
*
* Contains information about an application tenant, such as the application display name and identifier.
*
*
* @return Contains information about an application tenant, such as the application display name and identifier.
*/
public Tenant getTenant() {
return this.tenant;
}
/**
*
* Contains information about an application tenant, such as the application display name and identifier.
*
*
* @param tenant
* Contains information about an application tenant, such as the application display name and identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAppAuthorizationRequest withTenant(Tenant tenant) {
setTenant(tenant);
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 (getAppBundleIdentifier() != null)
sb.append("AppBundleIdentifier: ").append(getAppBundleIdentifier()).append(",");
if (getAppAuthorizationIdentifier() != null)
sb.append("AppAuthorizationIdentifier: ").append(getAppAuthorizationIdentifier()).append(",");
if (getCredential() != null)
sb.append("Credential: ").append(getCredential()).append(",");
if (getTenant() != null)
sb.append("Tenant: ").append(getTenant());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateAppAuthorizationRequest == false)
return false;
UpdateAppAuthorizationRequest other = (UpdateAppAuthorizationRequest) obj;
if (other.getAppBundleIdentifier() == null ^ this.getAppBundleIdentifier() == null)
return false;
if (other.getAppBundleIdentifier() != null && other.getAppBundleIdentifier().equals(this.getAppBundleIdentifier()) == false)
return false;
if (other.getAppAuthorizationIdentifier() == null ^ this.getAppAuthorizationIdentifier() == null)
return false;
if (other.getAppAuthorizationIdentifier() != null && other.getAppAuthorizationIdentifier().equals(this.getAppAuthorizationIdentifier()) == false)
return false;
if (other.getCredential() == null ^ this.getCredential() == null)
return false;
if (other.getCredential() != null && other.getCredential().equals(this.getCredential()) == false)
return false;
if (other.getTenant() == null ^ this.getTenant() == null)
return false;
if (other.getTenant() != null && other.getTenant().equals(this.getTenant()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAppBundleIdentifier() == null) ? 0 : getAppBundleIdentifier().hashCode());
hashCode = prime * hashCode + ((getAppAuthorizationIdentifier() == null) ? 0 : getAppAuthorizationIdentifier().hashCode());
hashCode = prime * hashCode + ((getCredential() == null) ? 0 : getCredential().hashCode());
hashCode = prime * hashCode + ((getTenant() == null) ? 0 : getTenant().hashCode());
return hashCode;
}
@Override
public UpdateAppAuthorizationRequest clone() {
return (UpdateAppAuthorizationRequest) super.clone();
}
}