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

com.amazonaws.services.eventbridge.model.DescribeEventBusResult 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 DescribeEventBusResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* The name of the event bus. Currently, this is always default. *

*/ private String name; /** *

* The Amazon Resource Name (ARN) of the account permitted to write events to the current account. *

*/ private String arn; /** *

* The event bus description. *

*/ private String description; /** *

* The identifier of the KMS customer managed key for EventBridge to use to encrypt events on this event bus, if one * has been specified. *

*

* For more information, see Data encryption in * EventBridge in the Amazon EventBridge User Guide. *

*/ private String kmsKeyIdentifier; private DeadLetterConfig deadLetterConfig; /** *

* The policy that enables the external account to send events to your account. *

*/ private String policy; /** *

* The time the event bus was created. *

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

* The time the event bus was last modified. *

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

* The name of the event bus. Currently, this is always default. *

* * @param name * The name of the event bus. Currently, this is always default. */ public void setName(String name) { this.name = name; } /** *

* The name of the event bus. Currently, this is always default. *

* * @return The name of the event bus. Currently, this is always default. */ public String getName() { return this.name; } /** *

* The name of the event bus. Currently, this is always default. *

* * @param name * The name of the event bus. Currently, this is always default. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEventBusResult withName(String name) { setName(name); return this; } /** *

* The Amazon Resource Name (ARN) of the account permitted to write events to the current account. *

* * @param arn * The Amazon Resource Name (ARN) of the account permitted to write events to the current account. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of the account permitted to write events to the current account. *

* * @return The Amazon Resource Name (ARN) of the account permitted to write events to the current account. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of the account permitted to write events to the current account. *

* * @param arn * The Amazon Resource Name (ARN) of the account permitted to write events to the current account. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEventBusResult withArn(String arn) { setArn(arn); return this; } /** *

* The event bus description. *

* * @param description * The event bus description. */ public void setDescription(String description) { this.description = description; } /** *

* The event bus description. *

* * @return The event bus description. */ public String getDescription() { return this.description; } /** *

* The event bus description. *

* * @param description * The event bus description. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEventBusResult withDescription(String description) { setDescription(description); return this; } /** *

* The identifier of the KMS customer managed key for EventBridge to use to encrypt events on this event bus, if one * has been specified. *

*

* For more information, see Data encryption in * EventBridge in the Amazon EventBridge User Guide. *

* * @param kmsKeyIdentifier * The identifier of the KMS customer managed key for EventBridge to use to encrypt events on this event bus, * if one has been specified.

*

* For more information, see Data encryption in * EventBridge in the Amazon EventBridge User Guide. */ public void setKmsKeyIdentifier(String kmsKeyIdentifier) { this.kmsKeyIdentifier = kmsKeyIdentifier; } /** *

* The identifier of the KMS customer managed key for EventBridge to use to encrypt events on this event bus, if one * has been specified. *

*

* For more information, see Data encryption in * EventBridge in the Amazon EventBridge User Guide. *

* * @return The identifier of the KMS customer managed key for EventBridge to use to encrypt events on this event * bus, if one has been specified.

*

* For more information, see Data encryption in * EventBridge in the Amazon EventBridge User Guide. */ public String getKmsKeyIdentifier() { return this.kmsKeyIdentifier; } /** *

* The identifier of the KMS customer managed key for EventBridge to use to encrypt events on this event bus, if one * has been specified. *

*

* For more information, see Data encryption in * EventBridge in the Amazon EventBridge User Guide. *

* * @param kmsKeyIdentifier * The identifier of the KMS customer managed key for EventBridge to use to encrypt events on this event bus, * if one has been specified.

*

* For more information, see Data encryption in * EventBridge in the Amazon EventBridge User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEventBusResult withKmsKeyIdentifier(String kmsKeyIdentifier) { setKmsKeyIdentifier(kmsKeyIdentifier); return this; } /** * @param deadLetterConfig */ public void setDeadLetterConfig(DeadLetterConfig deadLetterConfig) { this.deadLetterConfig = deadLetterConfig; } /** * @return */ public DeadLetterConfig getDeadLetterConfig() { return this.deadLetterConfig; } /** * @param deadLetterConfig * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEventBusResult withDeadLetterConfig(DeadLetterConfig deadLetterConfig) { setDeadLetterConfig(deadLetterConfig); return this; } /** *

* The policy that enables the external account to send events to your account. *

* * @param policy * The policy that enables the external account to send events to your account. */ public void setPolicy(String policy) { this.policy = policy; } /** *

* The policy that enables the external account to send events to your account. *

* * @return The policy that enables the external account to send events to your account. */ public String getPolicy() { return this.policy; } /** *

* The policy that enables the external account to send events to your account. *

* * @param policy * The policy that enables the external account to send events to your account. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEventBusResult withPolicy(String policy) { setPolicy(policy); return this; } /** *

* The time the event bus was created. *

* * @param creationTime * The time the event bus was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* The time the event bus was created. *

* * @return The time the event bus was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* The time the event bus was created. *

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

* The time the event bus was last modified. *

* * @param lastModifiedTime * The time the event bus was last modified. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** *

* The time the event bus was last modified. *

* * @return The time the event bus was last modified. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** *

* The time the event bus was last modified. *

* * @param lastModifiedTime * The time the event bus was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEventBusResult withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getKmsKeyIdentifier() != null) sb.append("KmsKeyIdentifier: ").append(getKmsKeyIdentifier()).append(","); if (getDeadLetterConfig() != null) sb.append("DeadLetterConfig: ").append(getDeadLetterConfig()).append(","); if (getPolicy() != null) sb.append("Policy: ").append(getPolicy()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeEventBusResult == false) return false; DescribeEventBusResult other = (DescribeEventBusResult) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == 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.getKmsKeyIdentifier() == null ^ this.getKmsKeyIdentifier() == null) return false; if (other.getKmsKeyIdentifier() != null && other.getKmsKeyIdentifier().equals(this.getKmsKeyIdentifier()) == false) return false; if (other.getDeadLetterConfig() == null ^ this.getDeadLetterConfig() == null) return false; if (other.getDeadLetterConfig() != null && other.getDeadLetterConfig().equals(this.getDeadLetterConfig()) == false) return false; if (other.getPolicy() == null ^ this.getPolicy() == null) return false; if (other.getPolicy() != null && other.getPolicy().equals(this.getPolicy()) == 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; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getKmsKeyIdentifier() == null) ? 0 : getKmsKeyIdentifier().hashCode()); hashCode = prime * hashCode + ((getDeadLetterConfig() == null) ? 0 : getDeadLetterConfig().hashCode()); hashCode = prime * hashCode + ((getPolicy() == null) ? 0 : getPolicy().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); return hashCode; } @Override public DescribeEventBusResult clone() { try { return (DescribeEventBusResult) 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