All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.eventbridge.model.CreateConnectionOAuthRequestParameters Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon EventBridge module holds the client classes that are used for communicating with Amazon EventBridge Service

The newest version!
/*
 * 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.eventbridge.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Contains the OAuth authorization parameters to use for the connection. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateConnectionOAuthRequestParameters implements Serializable, Cloneable, StructuredPojo { /** *

* A CreateConnectionOAuthClientRequestParameters object that contains the client parameters for OAuth * authorization. *

*/ private CreateConnectionOAuthClientRequestParameters clientParameters; /** *

* The URL to the authorization endpoint when OAuth is specified as the authorization type. *

*/ private String authorizationEndpoint; /** *

* The method to use for the authorization request. *

*/ private String httpMethod; /** *

* A ConnectionHttpParameters object that contains details about the additional parameters to use for * the connection. *

*/ private ConnectionHttpParameters oAuthHttpParameters; /** *

* A CreateConnectionOAuthClientRequestParameters object that contains the client parameters for OAuth * authorization. *

* * @param clientParameters * A CreateConnectionOAuthClientRequestParameters object that contains the client parameters for * OAuth authorization. */ public void setClientParameters(CreateConnectionOAuthClientRequestParameters clientParameters) { this.clientParameters = clientParameters; } /** *

* A CreateConnectionOAuthClientRequestParameters object that contains the client parameters for OAuth * authorization. *

* * @return A CreateConnectionOAuthClientRequestParameters object that contains the client parameters * for OAuth authorization. */ public CreateConnectionOAuthClientRequestParameters getClientParameters() { return this.clientParameters; } /** *

* A CreateConnectionOAuthClientRequestParameters object that contains the client parameters for OAuth * authorization. *

* * @param clientParameters * A CreateConnectionOAuthClientRequestParameters object that contains the client parameters for * OAuth authorization. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConnectionOAuthRequestParameters withClientParameters(CreateConnectionOAuthClientRequestParameters clientParameters) { setClientParameters(clientParameters); return this; } /** *

* The URL to the authorization endpoint when OAuth is specified as the authorization type. *

* * @param authorizationEndpoint * The URL to the authorization endpoint when OAuth is specified as the authorization type. */ public void setAuthorizationEndpoint(String authorizationEndpoint) { this.authorizationEndpoint = authorizationEndpoint; } /** *

* The URL to the authorization endpoint when OAuth is specified as the authorization type. *

* * @return The URL to the authorization endpoint when OAuth is specified as the authorization type. */ public String getAuthorizationEndpoint() { return this.authorizationEndpoint; } /** *

* The URL to the authorization endpoint when OAuth is specified as the authorization type. *

* * @param authorizationEndpoint * The URL to the authorization endpoint when OAuth is specified as the authorization type. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConnectionOAuthRequestParameters withAuthorizationEndpoint(String authorizationEndpoint) { setAuthorizationEndpoint(authorizationEndpoint); return this; } /** *

* The method to use for the authorization request. *

* * @param httpMethod * The method to use for the authorization request. * @see ConnectionOAuthHttpMethod */ public void setHttpMethod(String httpMethod) { this.httpMethod = httpMethod; } /** *

* The method to use for the authorization request. *

* * @return The method to use for the authorization request. * @see ConnectionOAuthHttpMethod */ public String getHttpMethod() { return this.httpMethod; } /** *

* The method to use for the authorization request. *

* * @param httpMethod * The method to use for the authorization request. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectionOAuthHttpMethod */ public CreateConnectionOAuthRequestParameters withHttpMethod(String httpMethod) { setHttpMethod(httpMethod); return this; } /** *

* The method to use for the authorization request. *

* * @param httpMethod * The method to use for the authorization request. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectionOAuthHttpMethod */ public CreateConnectionOAuthRequestParameters withHttpMethod(ConnectionOAuthHttpMethod httpMethod) { this.httpMethod = httpMethod.toString(); return this; } /** *

* A ConnectionHttpParameters object that contains details about the additional parameters to use for * the connection. *

* * @param oAuthHttpParameters * A ConnectionHttpParameters object that contains details about the additional parameters to * use for the connection. */ public void setOAuthHttpParameters(ConnectionHttpParameters oAuthHttpParameters) { this.oAuthHttpParameters = oAuthHttpParameters; } /** *

* A ConnectionHttpParameters object that contains details about the additional parameters to use for * the connection. *

* * @return A ConnectionHttpParameters object that contains details about the additional parameters to * use for the connection. */ public ConnectionHttpParameters getOAuthHttpParameters() { return this.oAuthHttpParameters; } /** *

* A ConnectionHttpParameters object that contains details about the additional parameters to use for * the connection. *

* * @param oAuthHttpParameters * A ConnectionHttpParameters object that contains details about the additional parameters to * use for the connection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConnectionOAuthRequestParameters withOAuthHttpParameters(ConnectionHttpParameters oAuthHttpParameters) { setOAuthHttpParameters(oAuthHttpParameters); 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 (getClientParameters() != null) sb.append("ClientParameters: ").append(getClientParameters()).append(","); if (getAuthorizationEndpoint() != null) sb.append("AuthorizationEndpoint: ").append(getAuthorizationEndpoint()).append(","); if (getHttpMethod() != null) sb.append("HttpMethod: ").append(getHttpMethod()).append(","); if (getOAuthHttpParameters() != null) sb.append("OAuthHttpParameters: ").append(getOAuthHttpParameters()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateConnectionOAuthRequestParameters == false) return false; CreateConnectionOAuthRequestParameters other = (CreateConnectionOAuthRequestParameters) obj; if (other.getClientParameters() == null ^ this.getClientParameters() == null) return false; if (other.getClientParameters() != null && other.getClientParameters().equals(this.getClientParameters()) == 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.getHttpMethod() == null ^ this.getHttpMethod() == null) return false; if (other.getHttpMethod() != null && other.getHttpMethod().equals(this.getHttpMethod()) == false) return false; if (other.getOAuthHttpParameters() == null ^ this.getOAuthHttpParameters() == null) return false; if (other.getOAuthHttpParameters() != null && other.getOAuthHttpParameters().equals(this.getOAuthHttpParameters()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClientParameters() == null) ? 0 : getClientParameters().hashCode()); hashCode = prime * hashCode + ((getAuthorizationEndpoint() == null) ? 0 : getAuthorizationEndpoint().hashCode()); hashCode = prime * hashCode + ((getHttpMethod() == null) ? 0 : getHttpMethod().hashCode()); hashCode = prime * hashCode + ((getOAuthHttpParameters() == null) ? 0 : getOAuthHttpParameters().hashCode()); return hashCode; } @Override public CreateConnectionOAuthRequestParameters clone() { try { return (CreateConnectionOAuthRequestParameters) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.eventbridge.model.transform.CreateConnectionOAuthRequestParametersMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy