com.amazonaws.services.eventbridge.model.UpdateConnectionAuthRequestParameters Maven / Gradle / Ivy
Show all versions of aws-java-sdk-eventbridge Show documentation
/*
* Copyright 2017-2022 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 additional parameters to use for the connection.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateConnectionAuthRequestParameters implements Serializable, Cloneable, StructuredPojo {
/**
*
* A UpdateConnectionBasicAuthRequestParameters
object that contains the authorization parameters for
* Basic authorization.
*
*/
private UpdateConnectionBasicAuthRequestParameters basicAuthParameters;
/**
*
* A UpdateConnectionOAuthRequestParameters
object that contains the authorization parameters for OAuth
* authorization.
*
*/
private UpdateConnectionOAuthRequestParameters oAuthParameters;
/**
*
* A UpdateConnectionApiKeyAuthRequestParameters
object that contains the authorization parameters for
* API key authorization.
*
*/
private UpdateConnectionApiKeyAuthRequestParameters apiKeyAuthParameters;
/**
*
* A ConnectionHttpParameters
object that contains the additional parameters to use for the connection.
*
*/
private ConnectionHttpParameters invocationHttpParameters;
/**
*
* A UpdateConnectionBasicAuthRequestParameters
object that contains the authorization parameters for
* Basic authorization.
*
*
* @param basicAuthParameters
* A UpdateConnectionBasicAuthRequestParameters
object that contains the authorization
* parameters for Basic authorization.
*/
public void setBasicAuthParameters(UpdateConnectionBasicAuthRequestParameters basicAuthParameters) {
this.basicAuthParameters = basicAuthParameters;
}
/**
*
* A UpdateConnectionBasicAuthRequestParameters
object that contains the authorization parameters for
* Basic authorization.
*
*
* @return A UpdateConnectionBasicAuthRequestParameters
object that contains the authorization
* parameters for Basic authorization.
*/
public UpdateConnectionBasicAuthRequestParameters getBasicAuthParameters() {
return this.basicAuthParameters;
}
/**
*
* A UpdateConnectionBasicAuthRequestParameters
object that contains the authorization parameters for
* Basic authorization.
*
*
* @param basicAuthParameters
* A UpdateConnectionBasicAuthRequestParameters
object that contains the authorization
* parameters for Basic authorization.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateConnectionAuthRequestParameters withBasicAuthParameters(UpdateConnectionBasicAuthRequestParameters basicAuthParameters) {
setBasicAuthParameters(basicAuthParameters);
return this;
}
/**
*
* A UpdateConnectionOAuthRequestParameters
object that contains the authorization parameters for OAuth
* authorization.
*
*
* @param oAuthParameters
* A UpdateConnectionOAuthRequestParameters
object that contains the authorization parameters
* for OAuth authorization.
*/
public void setOAuthParameters(UpdateConnectionOAuthRequestParameters oAuthParameters) {
this.oAuthParameters = oAuthParameters;
}
/**
*
* A UpdateConnectionOAuthRequestParameters
object that contains the authorization parameters for OAuth
* authorization.
*
*
* @return A UpdateConnectionOAuthRequestParameters
object that contains the authorization parameters
* for OAuth authorization.
*/
public UpdateConnectionOAuthRequestParameters getOAuthParameters() {
return this.oAuthParameters;
}
/**
*
* A UpdateConnectionOAuthRequestParameters
object that contains the authorization parameters for OAuth
* authorization.
*
*
* @param oAuthParameters
* A UpdateConnectionOAuthRequestParameters
object that contains the authorization parameters
* for OAuth authorization.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateConnectionAuthRequestParameters withOAuthParameters(UpdateConnectionOAuthRequestParameters oAuthParameters) {
setOAuthParameters(oAuthParameters);
return this;
}
/**
*
* A UpdateConnectionApiKeyAuthRequestParameters
object that contains the authorization parameters for
* API key authorization.
*
*
* @param apiKeyAuthParameters
* A UpdateConnectionApiKeyAuthRequestParameters
object that contains the authorization
* parameters for API key authorization.
*/
public void setApiKeyAuthParameters(UpdateConnectionApiKeyAuthRequestParameters apiKeyAuthParameters) {
this.apiKeyAuthParameters = apiKeyAuthParameters;
}
/**
*
* A UpdateConnectionApiKeyAuthRequestParameters
object that contains the authorization parameters for
* API key authorization.
*
*
* @return A UpdateConnectionApiKeyAuthRequestParameters
object that contains the authorization
* parameters for API key authorization.
*/
public UpdateConnectionApiKeyAuthRequestParameters getApiKeyAuthParameters() {
return this.apiKeyAuthParameters;
}
/**
*
* A UpdateConnectionApiKeyAuthRequestParameters
object that contains the authorization parameters for
* API key authorization.
*
*
* @param apiKeyAuthParameters
* A UpdateConnectionApiKeyAuthRequestParameters
object that contains the authorization
* parameters for API key authorization.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateConnectionAuthRequestParameters withApiKeyAuthParameters(UpdateConnectionApiKeyAuthRequestParameters apiKeyAuthParameters) {
setApiKeyAuthParameters(apiKeyAuthParameters);
return this;
}
/**
*
* A ConnectionHttpParameters
object that contains the additional parameters to use for the connection.
*
*
* @param invocationHttpParameters
* A ConnectionHttpParameters
object that contains the additional parameters to use for the
* connection.
*/
public void setInvocationHttpParameters(ConnectionHttpParameters invocationHttpParameters) {
this.invocationHttpParameters = invocationHttpParameters;
}
/**
*
* A ConnectionHttpParameters
object that contains the additional parameters to use for the connection.
*
*
* @return A ConnectionHttpParameters
object that contains the additional parameters to use for the
* connection.
*/
public ConnectionHttpParameters getInvocationHttpParameters() {
return this.invocationHttpParameters;
}
/**
*
* A ConnectionHttpParameters
object that contains the additional parameters to use for the connection.
*
*
* @param invocationHttpParameters
* A ConnectionHttpParameters
object that contains the additional parameters to use for the
* connection.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateConnectionAuthRequestParameters withInvocationHttpParameters(ConnectionHttpParameters invocationHttpParameters) {
setInvocationHttpParameters(invocationHttpParameters);
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 (getBasicAuthParameters() != null)
sb.append("BasicAuthParameters: ").append(getBasicAuthParameters()).append(",");
if (getOAuthParameters() != null)
sb.append("OAuthParameters: ").append(getOAuthParameters()).append(",");
if (getApiKeyAuthParameters() != null)
sb.append("ApiKeyAuthParameters: ").append(getApiKeyAuthParameters()).append(",");
if (getInvocationHttpParameters() != null)
sb.append("InvocationHttpParameters: ").append(getInvocationHttpParameters());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateConnectionAuthRequestParameters == false)
return false;
UpdateConnectionAuthRequestParameters other = (UpdateConnectionAuthRequestParameters) obj;
if (other.getBasicAuthParameters() == null ^ this.getBasicAuthParameters() == null)
return false;
if (other.getBasicAuthParameters() != null && other.getBasicAuthParameters().equals(this.getBasicAuthParameters()) == false)
return false;
if (other.getOAuthParameters() == null ^ this.getOAuthParameters() == null)
return false;
if (other.getOAuthParameters() != null && other.getOAuthParameters().equals(this.getOAuthParameters()) == false)
return false;
if (other.getApiKeyAuthParameters() == null ^ this.getApiKeyAuthParameters() == null)
return false;
if (other.getApiKeyAuthParameters() != null && other.getApiKeyAuthParameters().equals(this.getApiKeyAuthParameters()) == false)
return false;
if (other.getInvocationHttpParameters() == null ^ this.getInvocationHttpParameters() == null)
return false;
if (other.getInvocationHttpParameters() != null && other.getInvocationHttpParameters().equals(this.getInvocationHttpParameters()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getBasicAuthParameters() == null) ? 0 : getBasicAuthParameters().hashCode());
hashCode = prime * hashCode + ((getOAuthParameters() == null) ? 0 : getOAuthParameters().hashCode());
hashCode = prime * hashCode + ((getApiKeyAuthParameters() == null) ? 0 : getApiKeyAuthParameters().hashCode());
hashCode = prime * hashCode + ((getInvocationHttpParameters() == null) ? 0 : getInvocationHttpParameters().hashCode());
return hashCode;
}
@Override
public UpdateConnectionAuthRequestParameters clone() {
try {
return (UpdateConnectionAuthRequestParameters) 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.UpdateConnectionAuthRequestParametersMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}