com.amazonaws.services.ec2.model.CreateVerifiedAccessTrustProviderOidcOptions Maven / Gradle / Ivy
Show all versions of aws-java-sdk-ec2 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.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* Describes the options when creating an Amazon Web Services Verified Access trust provider using the user
* type.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateVerifiedAccessTrustProviderOidcOptions implements Serializable, Cloneable {
/**
*
* The OIDC issuer.
*
*/
private String issuer;
/**
*
* The OIDC authorization endpoint.
*
*/
private String authorizationEndpoint;
/**
*
* The OIDC token endpoint.
*
*/
private String tokenEndpoint;
/**
*
* The OIDC user info endpoint.
*
*/
private String userInfoEndpoint;
/**
*
* The client identifier.
*
*/
private String clientId;
/**
*
* The client secret.
*
*/
private String clientSecret;
/**
*
* OpenID Connect (OIDC) scopes are used by an application during authentication to authorize access to a user's
* details. Each scope returns a specific set of user attributes.
*
*/
private String scope;
/**
*
* The OIDC issuer.
*
*
* @param issuer
* The OIDC issuer.
*/
public void setIssuer(String issuer) {
this.issuer = issuer;
}
/**
*
* The OIDC issuer.
*
*
* @return The OIDC issuer.
*/
public String getIssuer() {
return this.issuer;
}
/**
*
* The OIDC issuer.
*
*
* @param issuer
* The OIDC issuer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateVerifiedAccessTrustProviderOidcOptions withIssuer(String issuer) {
setIssuer(issuer);
return this;
}
/**
*
* The OIDC authorization endpoint.
*
*
* @param authorizationEndpoint
* The OIDC authorization endpoint.
*/
public void setAuthorizationEndpoint(String authorizationEndpoint) {
this.authorizationEndpoint = authorizationEndpoint;
}
/**
*
* The OIDC authorization endpoint.
*
*
* @return The OIDC authorization endpoint.
*/
public String getAuthorizationEndpoint() {
return this.authorizationEndpoint;
}
/**
*
* The OIDC authorization endpoint.
*
*
* @param authorizationEndpoint
* The OIDC authorization endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateVerifiedAccessTrustProviderOidcOptions withAuthorizationEndpoint(String authorizationEndpoint) {
setAuthorizationEndpoint(authorizationEndpoint);
return this;
}
/**
*
* The OIDC token endpoint.
*
*
* @param tokenEndpoint
* The OIDC token endpoint.
*/
public void setTokenEndpoint(String tokenEndpoint) {
this.tokenEndpoint = tokenEndpoint;
}
/**
*
* The OIDC token endpoint.
*
*
* @return The OIDC token endpoint.
*/
public String getTokenEndpoint() {
return this.tokenEndpoint;
}
/**
*
* The OIDC token endpoint.
*
*
* @param tokenEndpoint
* The OIDC token endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateVerifiedAccessTrustProviderOidcOptions withTokenEndpoint(String tokenEndpoint) {
setTokenEndpoint(tokenEndpoint);
return this;
}
/**
*
* The OIDC user info endpoint.
*
*
* @param userInfoEndpoint
* The OIDC user info endpoint.
*/
public void setUserInfoEndpoint(String userInfoEndpoint) {
this.userInfoEndpoint = userInfoEndpoint;
}
/**
*
* The OIDC user info endpoint.
*
*
* @return The OIDC user info endpoint.
*/
public String getUserInfoEndpoint() {
return this.userInfoEndpoint;
}
/**
*
* The OIDC user info endpoint.
*
*
* @param userInfoEndpoint
* The OIDC user info endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateVerifiedAccessTrustProviderOidcOptions withUserInfoEndpoint(String userInfoEndpoint) {
setUserInfoEndpoint(userInfoEndpoint);
return this;
}
/**
*
* The client identifier.
*
*
* @param clientId
* The client identifier.
*/
public void setClientId(String clientId) {
this.clientId = clientId;
}
/**
*
* The client identifier.
*
*
* @return The client identifier.
*/
public String getClientId() {
return this.clientId;
}
/**
*
* The client identifier.
*
*
* @param clientId
* The client identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateVerifiedAccessTrustProviderOidcOptions withClientId(String clientId) {
setClientId(clientId);
return this;
}
/**
*
* The client secret.
*
*
* @param clientSecret
* The client secret.
*/
public void setClientSecret(String clientSecret) {
this.clientSecret = clientSecret;
}
/**
*
* The client secret.
*
*
* @return The client secret.
*/
public String getClientSecret() {
return this.clientSecret;
}
/**
*
* The client secret.
*
*
* @param clientSecret
* The client secret.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateVerifiedAccessTrustProviderOidcOptions withClientSecret(String clientSecret) {
setClientSecret(clientSecret);
return this;
}
/**
*
* OpenID Connect (OIDC) scopes are used by an application during authentication to authorize access to a user's
* details. Each scope returns a specific set of user attributes.
*
*
* @param scope
* OpenID Connect (OIDC) scopes are used by an application during authentication to authorize access to a
* user's details. Each scope returns a specific set of user attributes.
*/
public void setScope(String scope) {
this.scope = scope;
}
/**
*
* OpenID Connect (OIDC) scopes are used by an application during authentication to authorize access to a user's
* details. Each scope returns a specific set of user attributes.
*
*
* @return OpenID Connect (OIDC) scopes are used by an application during authentication to authorize access to a
* user's details. Each scope returns a specific set of user attributes.
*/
public String getScope() {
return this.scope;
}
/**
*
* OpenID Connect (OIDC) scopes are used by an application during authentication to authorize access to a user's
* details. Each scope returns a specific set of user attributes.
*
*
* @param scope
* OpenID Connect (OIDC) scopes are used by an application during authentication to authorize access to a
* user's details. Each scope returns a specific set of user attributes.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateVerifiedAccessTrustProviderOidcOptions withScope(String scope) {
setScope(scope);
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 (getIssuer() != null)
sb.append("Issuer: ").append(getIssuer()).append(",");
if (getAuthorizationEndpoint() != null)
sb.append("AuthorizationEndpoint: ").append(getAuthorizationEndpoint()).append(",");
if (getTokenEndpoint() != null)
sb.append("TokenEndpoint: ").append(getTokenEndpoint()).append(",");
if (getUserInfoEndpoint() != null)
sb.append("UserInfoEndpoint: ").append(getUserInfoEndpoint()).append(",");
if (getClientId() != null)
sb.append("ClientId: ").append(getClientId()).append(",");
if (getClientSecret() != null)
sb.append("ClientSecret: ").append("***Sensitive Data Redacted***").append(",");
if (getScope() != null)
sb.append("Scope: ").append(getScope());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateVerifiedAccessTrustProviderOidcOptions == false)
return false;
CreateVerifiedAccessTrustProviderOidcOptions other = (CreateVerifiedAccessTrustProviderOidcOptions) obj;
if (other.getIssuer() == null ^ this.getIssuer() == null)
return false;
if (other.getIssuer() != null && other.getIssuer().equals(this.getIssuer()) == false)
return false;
if (other.getAuthorizationEndpoint() == null ^ this.getAuthorizationEndpoint() == null)
return false;
if (other.getAuthorizationEndpoint() != null && other.getAuthorizationEndpoint().equals(this.getAuthorizationEndpoint()) == false)
return false;
if (other.getTokenEndpoint() == null ^ this.getTokenEndpoint() == null)
return false;
if (other.getTokenEndpoint() != null && other.getTokenEndpoint().equals(this.getTokenEndpoint()) == false)
return false;
if (other.getUserInfoEndpoint() == null ^ this.getUserInfoEndpoint() == null)
return false;
if (other.getUserInfoEndpoint() != null && other.getUserInfoEndpoint().equals(this.getUserInfoEndpoint()) == false)
return false;
if (other.getClientId() == null ^ this.getClientId() == null)
return false;
if (other.getClientId() != null && other.getClientId().equals(this.getClientId()) == false)
return false;
if (other.getClientSecret() == null ^ this.getClientSecret() == null)
return false;
if (other.getClientSecret() != null && other.getClientSecret().equals(this.getClientSecret()) == false)
return false;
if (other.getScope() == null ^ this.getScope() == null)
return false;
if (other.getScope() != null && other.getScope().equals(this.getScope()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getIssuer() == null) ? 0 : getIssuer().hashCode());
hashCode = prime * hashCode + ((getAuthorizationEndpoint() == null) ? 0 : getAuthorizationEndpoint().hashCode());
hashCode = prime * hashCode + ((getTokenEndpoint() == null) ? 0 : getTokenEndpoint().hashCode());
hashCode = prime * hashCode + ((getUserInfoEndpoint() == null) ? 0 : getUserInfoEndpoint().hashCode());
hashCode = prime * hashCode + ((getClientId() == null) ? 0 : getClientId().hashCode());
hashCode = prime * hashCode + ((getClientSecret() == null) ? 0 : getClientSecret().hashCode());
hashCode = prime * hashCode + ((getScope() == null) ? 0 : getScope().hashCode());
return hashCode;
}
@Override
public CreateVerifiedAccessTrustProviderOidcOptions clone() {
try {
return (CreateVerifiedAccessTrustProviderOidcOptions) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}