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

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

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

    /**
     * 

* The ARN of the connection retrieved. *

*/ private String connectionArn; /** *

* The name of the connection retrieved. *

*/ private String name; /** *

* The description for the connection retrieved. *

*/ private String description; /** *

* The state of the connection retrieved. *

*/ private String connectionState; /** *

* The reason that the connection is in the current connection state. *

*/ private String stateReason; /** *

* The type of authorization specified for the connection. *

*/ private String authorizationType; /** *

* The ARN of the secret created from the authorization parameters specified for the connection. *

*/ private String secretArn; /** *

* The parameters to use for authorization for the connection. *

*/ private ConnectionAuthResponseParameters authParameters; /** *

* A time stamp for the time that the connection was created. *

*/ private java.util.Date creationTime; /** *

* A time stamp for the time that the connection was last modified. *

*/ private java.util.Date lastModifiedTime; /** *

* A time stamp for the time that the connection was last authorized. *

*/ private java.util.Date lastAuthorizedTime; /** *

* The ARN of the connection retrieved. *

* * @param connectionArn * The ARN of the connection retrieved. */ public void setConnectionArn(String connectionArn) { this.connectionArn = connectionArn; } /** *

* The ARN of the connection retrieved. *

* * @return The ARN of the connection retrieved. */ public String getConnectionArn() { return this.connectionArn; } /** *

* The ARN of the connection retrieved. *

* * @param connectionArn * The ARN of the connection retrieved. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConnectionResult withConnectionArn(String connectionArn) { setConnectionArn(connectionArn); return this; } /** *

* The name of the connection retrieved. *

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

* The name of the connection retrieved. *

* * @return The name of the connection retrieved. */ public String getName() { return this.name; } /** *

* The name of the connection retrieved. *

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

* The description for the connection retrieved. *

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

* The description for the connection retrieved. *

* * @return The description for the connection retrieved. */ public String getDescription() { return this.description; } /** *

* The description for the connection retrieved. *

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

* The state of the connection retrieved. *

* * @param connectionState * The state of the connection retrieved. * @see ConnectionState */ public void setConnectionState(String connectionState) { this.connectionState = connectionState; } /** *

* The state of the connection retrieved. *

* * @return The state of the connection retrieved. * @see ConnectionState */ public String getConnectionState() { return this.connectionState; } /** *

* The state of the connection retrieved. *

* * @param connectionState * The state of the connection retrieved. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectionState */ public DescribeConnectionResult withConnectionState(String connectionState) { setConnectionState(connectionState); return this; } /** *

* The state of the connection retrieved. *

* * @param connectionState * The state of the connection retrieved. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectionState */ public DescribeConnectionResult withConnectionState(ConnectionState connectionState) { this.connectionState = connectionState.toString(); return this; } /** *

* The reason that the connection is in the current connection state. *

* * @param stateReason * The reason that the connection is in the current connection state. */ public void setStateReason(String stateReason) { this.stateReason = stateReason; } /** *

* The reason that the connection is in the current connection state. *

* * @return The reason that the connection is in the current connection state. */ public String getStateReason() { return this.stateReason; } /** *

* The reason that the connection is in the current connection state. *

* * @param stateReason * The reason that the connection is in the current connection state. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConnectionResult withStateReason(String stateReason) { setStateReason(stateReason); return this; } /** *

* The type of authorization specified for the connection. *

* * @param authorizationType * The type of authorization specified for the connection. * @see ConnectionAuthorizationType */ public void setAuthorizationType(String authorizationType) { this.authorizationType = authorizationType; } /** *

* The type of authorization specified for the connection. *

* * @return The type of authorization specified for the connection. * @see ConnectionAuthorizationType */ public String getAuthorizationType() { return this.authorizationType; } /** *

* The type of authorization specified for the connection. *

* * @param authorizationType * The type of authorization specified for the connection. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectionAuthorizationType */ public DescribeConnectionResult withAuthorizationType(String authorizationType) { setAuthorizationType(authorizationType); return this; } /** *

* The type of authorization specified for the connection. *

* * @param authorizationType * The type of authorization specified for the connection. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectionAuthorizationType */ public DescribeConnectionResult withAuthorizationType(ConnectionAuthorizationType authorizationType) { this.authorizationType = authorizationType.toString(); return this; } /** *

* The ARN of the secret created from the authorization parameters specified for the connection. *

* * @param secretArn * The ARN of the secret created from the authorization parameters specified for the connection. */ public void setSecretArn(String secretArn) { this.secretArn = secretArn; } /** *

* The ARN of the secret created from the authorization parameters specified for the connection. *

* * @return The ARN of the secret created from the authorization parameters specified for the connection. */ public String getSecretArn() { return this.secretArn; } /** *

* The ARN of the secret created from the authorization parameters specified for the connection. *

* * @param secretArn * The ARN of the secret created from the authorization parameters specified for the connection. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConnectionResult withSecretArn(String secretArn) { setSecretArn(secretArn); return this; } /** *

* The parameters to use for authorization for the connection. *

* * @param authParameters * The parameters to use for authorization for the connection. */ public void setAuthParameters(ConnectionAuthResponseParameters authParameters) { this.authParameters = authParameters; } /** *

* The parameters to use for authorization for the connection. *

* * @return The parameters to use for authorization for the connection. */ public ConnectionAuthResponseParameters getAuthParameters() { return this.authParameters; } /** *

* The parameters to use for authorization for the connection. *

* * @param authParameters * The parameters to use for authorization for the connection. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConnectionResult withAuthParameters(ConnectionAuthResponseParameters authParameters) { setAuthParameters(authParameters); return this; } /** *

* A time stamp for the time that the connection was created. *

* * @param creationTime * A time stamp for the time that the connection was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* A time stamp for the time that the connection was created. *

* * @return A time stamp for the time that the connection was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* A time stamp for the time that the connection was created. *

* * @param creationTime * A time stamp for the time that the connection was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConnectionResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* A time stamp for the time that the connection was last modified. *

* * @param lastModifiedTime * A time stamp for the time that the connection was last modified. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** *

* A time stamp for the time that the connection was last modified. *

* * @return A time stamp for the time that the connection was last modified. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** *

* A time stamp for the time that the connection was last modified. *

* * @param lastModifiedTime * A time stamp for the time that the connection was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConnectionResult withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** *

* A time stamp for the time that the connection was last authorized. *

* * @param lastAuthorizedTime * A time stamp for the time that the connection was last authorized. */ public void setLastAuthorizedTime(java.util.Date lastAuthorizedTime) { this.lastAuthorizedTime = lastAuthorizedTime; } /** *

* A time stamp for the time that the connection was last authorized. *

* * @return A time stamp for the time that the connection was last authorized. */ public java.util.Date getLastAuthorizedTime() { return this.lastAuthorizedTime; } /** *

* A time stamp for the time that the connection was last authorized. *

* * @param lastAuthorizedTime * A time stamp for the time that the connection was last authorized. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConnectionResult withLastAuthorizedTime(java.util.Date lastAuthorizedTime) { setLastAuthorizedTime(lastAuthorizedTime); 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 (getConnectionArn() != null) sb.append("ConnectionArn: ").append(getConnectionArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getConnectionState() != null) sb.append("ConnectionState: ").append(getConnectionState()).append(","); if (getStateReason() != null) sb.append("StateReason: ").append(getStateReason()).append(","); if (getAuthorizationType() != null) sb.append("AuthorizationType: ").append(getAuthorizationType()).append(","); if (getSecretArn() != null) sb.append("SecretArn: ").append(getSecretArn()).append(","); if (getAuthParameters() != null) sb.append("AuthParameters: ").append(getAuthParameters()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getLastAuthorizedTime() != null) sb.append("LastAuthorizedTime: ").append(getLastAuthorizedTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeConnectionResult == false) return false; DescribeConnectionResult other = (DescribeConnectionResult) obj; if (other.getConnectionArn() == null ^ this.getConnectionArn() == null) return false; if (other.getConnectionArn() != null && other.getConnectionArn().equals(this.getConnectionArn()) == false) return false; 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.getConnectionState() == null ^ this.getConnectionState() == null) return false; if (other.getConnectionState() != null && other.getConnectionState().equals(this.getConnectionState()) == false) return false; if (other.getStateReason() == null ^ this.getStateReason() == null) return false; if (other.getStateReason() != null && other.getStateReason().equals(this.getStateReason()) == 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.getSecretArn() == null ^ this.getSecretArn() == null) return false; if (other.getSecretArn() != null && other.getSecretArn().equals(this.getSecretArn()) == false) return false; if (other.getAuthParameters() == null ^ this.getAuthParameters() == null) return false; if (other.getAuthParameters() != null && other.getAuthParameters().equals(this.getAuthParameters()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) return false; if (other.getLastAuthorizedTime() == null ^ this.getLastAuthorizedTime() == null) return false; if (other.getLastAuthorizedTime() != null && other.getLastAuthorizedTime().equals(this.getLastAuthorizedTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConnectionArn() == null) ? 0 : getConnectionArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getConnectionState() == null) ? 0 : getConnectionState().hashCode()); hashCode = prime * hashCode + ((getStateReason() == null) ? 0 : getStateReason().hashCode()); hashCode = prime * hashCode + ((getAuthorizationType() == null) ? 0 : getAuthorizationType().hashCode()); hashCode = prime * hashCode + ((getSecretArn() == null) ? 0 : getSecretArn().hashCode()); hashCode = prime * hashCode + ((getAuthParameters() == null) ? 0 : getAuthParameters().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getLastAuthorizedTime() == null) ? 0 : getLastAuthorizedTime().hashCode()); return hashCode; } @Override public DescribeConnectionResult clone() { try { return (DescribeConnectionResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy