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

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

/**
 * 

* An event bus receives events from a source, uses rules to evaluate them, applies any configured input transformation, * and routes them to the appropriate target(s). Your account's default event bus receives events from Amazon Web * Services services. A custom event bus can receive events from your custom applications and services. A partner event * bus receives events from an event source created by an SaaS partner. These events come from the partners services or * applications. *

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

* The name of the event bus. *

*/ private String name; /** *

* The ARN of the event bus. *

*/ private String arn; /** *

* The event bus description. *

*/ private String description; /** *

* The permissions policy of the event bus, describing which other Amazon Web Services accounts can write events to * this event bus. *

*/ 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. *

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

* The name of the event bus. *

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

* The name of the event bus. *

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

* The ARN of the event bus. *

* * @param arn * The ARN of the event bus. */ public void setArn(String arn) { this.arn = arn; } /** *

* The ARN of the event bus. *

* * @return The ARN of the event bus. */ public String getArn() { return this.arn; } /** *

* The ARN of the event bus. *

* * @param arn * The ARN of the event bus. * @return Returns a reference to this object so that method calls can be chained together. */ public EventBus 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 EventBus withDescription(String description) { setDescription(description); return this; } /** *

* The permissions policy of the event bus, describing which other Amazon Web Services accounts can write events to * this event bus. *

* * @param policy * The permissions policy of the event bus, describing which other Amazon Web Services accounts can write * events to this event bus. */ public void setPolicy(String policy) { this.policy = policy; } /** *

* The permissions policy of the event bus, describing which other Amazon Web Services accounts can write events to * this event bus. *

* * @return The permissions policy of the event bus, describing which other Amazon Web Services accounts can write * events to this event bus. */ public String getPolicy() { return this.policy; } /** *

* The permissions policy of the event bus, describing which other Amazon Web Services accounts can write events to * this event bus. *

* * @param policy * The permissions policy of the event bus, describing which other Amazon Web Services accounts can write * events to this event bus. * @return Returns a reference to this object so that method calls can be chained together. */ public EventBus 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 EventBus 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 EventBus 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 (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 EventBus == false) return false; EventBus other = (EventBus) 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.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 + ((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 EventBus clone() { try { return (EventBus) 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.EventBusMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy