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

com.amazonaws.services.eventbridge.model.CreateConnectionRequest 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

There is a newer version: 1.12.780
Show 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.AmazonWebServiceRequest;

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

    /**
     * 

* The name for the connection to create. *

*/ private String name; /** *

* A description for the connection to create. *

*/ private String description; /** *

* The type of authorization to use for the connection. *

* *

* OAUTH tokens are refreshed when a 401 or 407 response is returned. *

*
*/ private String authorizationType; /** *

* A CreateConnectionAuthRequestParameters object that contains the authorization parameters to use to * authorize with the endpoint. *

*/ private CreateConnectionAuthRequestParameters authParameters; /** *

* The name for the connection to create. *

* * @param name * The name for the connection to create. */ public void setName(String name) { this.name = name; } /** *

* The name for the connection to create. *

* * @return The name for the connection to create. */ public String getName() { return this.name; } /** *

* The name for the connection to create. *

* * @param name * The name for the connection to create. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConnectionRequest withName(String name) { setName(name); return this; } /** *

* A description for the connection to create. *

* * @param description * A description for the connection to create. */ public void setDescription(String description) { this.description = description; } /** *

* A description for the connection to create. *

* * @return A description for the connection to create. */ public String getDescription() { return this.description; } /** *

* A description for the connection to create. *

* * @param description * A description for the connection to create. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConnectionRequest withDescription(String description) { setDescription(description); return this; } /** *

* The type of authorization to use for the connection. *

* *

* OAUTH tokens are refreshed when a 401 or 407 response is returned. *

*
* * @param authorizationType * The type of authorization to use for the connection.

*

* OAUTH tokens are refreshed when a 401 or 407 response is returned. *

* @see ConnectionAuthorizationType */ public void setAuthorizationType(String authorizationType) { this.authorizationType = authorizationType; } /** *

* The type of authorization to use for the connection. *

* *

* OAUTH tokens are refreshed when a 401 or 407 response is returned. *

*
* * @return The type of authorization to use for the connection.

*

* OAUTH tokens are refreshed when a 401 or 407 response is returned. *

* @see ConnectionAuthorizationType */ public String getAuthorizationType() { return this.authorizationType; } /** *

* The type of authorization to use for the connection. *

* *

* OAUTH tokens are refreshed when a 401 or 407 response is returned. *

*
* * @param authorizationType * The type of authorization to use for the connection.

*

* OAUTH tokens are refreshed when a 401 or 407 response is returned. *

* @return Returns a reference to this object so that method calls can be chained together. * @see ConnectionAuthorizationType */ public CreateConnectionRequest withAuthorizationType(String authorizationType) { setAuthorizationType(authorizationType); return this; } /** *

* The type of authorization to use for the connection. *

* *

* OAUTH tokens are refreshed when a 401 or 407 response is returned. *

*
* * @param authorizationType * The type of authorization to use for the connection.

*

* OAUTH tokens are refreshed when a 401 or 407 response is returned. *

* @return Returns a reference to this object so that method calls can be chained together. * @see ConnectionAuthorizationType */ public CreateConnectionRequest withAuthorizationType(ConnectionAuthorizationType authorizationType) { this.authorizationType = authorizationType.toString(); return this; } /** *

* A CreateConnectionAuthRequestParameters object that contains the authorization parameters to use to * authorize with the endpoint. *

* * @param authParameters * A CreateConnectionAuthRequestParameters object that contains the authorization parameters to * use to authorize with the endpoint. */ public void setAuthParameters(CreateConnectionAuthRequestParameters authParameters) { this.authParameters = authParameters; } /** *

* A CreateConnectionAuthRequestParameters object that contains the authorization parameters to use to * authorize with the endpoint. *

* * @return A CreateConnectionAuthRequestParameters object that contains the authorization parameters to * use to authorize with the endpoint. */ public CreateConnectionAuthRequestParameters getAuthParameters() { return this.authParameters; } /** *

* A CreateConnectionAuthRequestParameters object that contains the authorization parameters to use to * authorize with the endpoint. *

* * @param authParameters * A CreateConnectionAuthRequestParameters object that contains the authorization parameters to * use to authorize with the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConnectionRequest withAuthParameters(CreateConnectionAuthRequestParameters authParameters) { setAuthParameters(authParameters); 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getAuthorizationType() != null) sb.append("AuthorizationType: ").append(getAuthorizationType()).append(","); if (getAuthParameters() != null) sb.append("AuthParameters: ").append(getAuthParameters()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateConnectionRequest == false) return false; CreateConnectionRequest other = (CreateConnectionRequest) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getAuthorizationType() == null ^ this.getAuthorizationType() == null) return false; if (other.getAuthorizationType() != null && other.getAuthorizationType().equals(this.getAuthorizationType()) == false) return false; if (other.getAuthParameters() == null ^ this.getAuthParameters() == null) return false; if (other.getAuthParameters() != null && other.getAuthParameters().equals(this.getAuthParameters()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getAuthorizationType() == null) ? 0 : getAuthorizationType().hashCode()); hashCode = prime * hashCode + ((getAuthParameters() == null) ? 0 : getAuthParameters().hashCode()); return hashCode; } @Override public CreateConnectionRequest clone() { return (CreateConnectionRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy