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

com.amazonaws.services.schemas.model.CreateDiscovererResult Maven / Gradle / Ivy

/*
 * Copyright 2015-2020 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.schemas.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* The description of the discoverer. *

*/ private String description; /** *

* The ARN of the discoverer. *

*/ private String discovererArn; /** *

* The ID of the discoverer. *

*/ private String discovererId; /** *

* The ARN of the event bus. *

*/ private String sourceArn; /** *

* The state of the discoverer. *

*/ private String state; /** *

* Tags associated with the resource. *

*/ private java.util.Map tags; /** *

* The description of the discoverer. *

* * @param description * The description of the discoverer. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the discoverer. *

* * @return The description of the discoverer. */ public String getDescription() { return this.description; } /** *

* The description of the discoverer. *

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

* The ARN of the discoverer. *

* * @param discovererArn * The ARN of the discoverer. */ public void setDiscovererArn(String discovererArn) { this.discovererArn = discovererArn; } /** *

* The ARN of the discoverer. *

* * @return The ARN of the discoverer. */ public String getDiscovererArn() { return this.discovererArn; } /** *

* The ARN of the discoverer. *

* * @param discovererArn * The ARN of the discoverer. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDiscovererResult withDiscovererArn(String discovererArn) { setDiscovererArn(discovererArn); return this; } /** *

* The ID of the discoverer. *

* * @param discovererId * The ID of the discoverer. */ public void setDiscovererId(String discovererId) { this.discovererId = discovererId; } /** *

* The ID of the discoverer. *

* * @return The ID of the discoverer. */ public String getDiscovererId() { return this.discovererId; } /** *

* The ID of the discoverer. *

* * @param discovererId * The ID of the discoverer. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDiscovererResult withDiscovererId(String discovererId) { setDiscovererId(discovererId); return this; } /** *

* The ARN of the event bus. *

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

* The ARN of the event bus. *

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

* The ARN of the event bus. *

* * @param sourceArn * The ARN of the event bus. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDiscovererResult withSourceArn(String sourceArn) { setSourceArn(sourceArn); return this; } /** *

* The state of the discoverer. *

* * @param state * The state of the discoverer. * @see DiscovererState */ public void setState(String state) { this.state = state; } /** *

* The state of the discoverer. *

* * @return The state of the discoverer. * @see DiscovererState */ public String getState() { return this.state; } /** *

* The state of the discoverer. *

* * @param state * The state of the discoverer. * @return Returns a reference to this object so that method calls can be chained together. * @see DiscovererState */ public CreateDiscovererResult withState(String state) { setState(state); return this; } /** *

* The state of the discoverer. *

* * @param state * The state of the discoverer. * @return Returns a reference to this object so that method calls can be chained together. * @see DiscovererState */ public CreateDiscovererResult withState(DiscovererState state) { this.state = state.toString(); return this; } /** *

* Tags associated with the resource. *

* * @return Tags associated with the resource. */ public java.util.Map getTags() { return tags; } /** *

* Tags associated with the resource. *

* * @param tags * Tags associated with the resource. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* Tags associated with the resource. *

* * @param tags * Tags associated with the resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDiscovererResult withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see CreateDiscovererResult#withTags * @returns a reference to this object so that method calls can be chained together. */ public CreateDiscovererResult addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDiscovererResult clearTagsEntries() { this.tags = null; 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 (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getDiscovererArn() != null) sb.append("DiscovererArn: ").append(getDiscovererArn()).append(","); if (getDiscovererId() != null) sb.append("DiscovererId: ").append(getDiscovererId()).append(","); if (getSourceArn() != null) sb.append("SourceArn: ").append(getSourceArn()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateDiscovererResult == false) return false; CreateDiscovererResult other = (CreateDiscovererResult) obj; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getDiscovererArn() == null ^ this.getDiscovererArn() == null) return false; if (other.getDiscovererArn() != null && other.getDiscovererArn().equals(this.getDiscovererArn()) == false) return false; if (other.getDiscovererId() == null ^ this.getDiscovererId() == null) return false; if (other.getDiscovererId() != null && other.getDiscovererId().equals(this.getDiscovererId()) == false) return false; if (other.getSourceArn() == null ^ this.getSourceArn() == null) return false; if (other.getSourceArn() != null && other.getSourceArn().equals(this.getSourceArn()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDiscovererArn() == null) ? 0 : getDiscovererArn().hashCode()); hashCode = prime * hashCode + ((getDiscovererId() == null) ? 0 : getDiscovererId().hashCode()); hashCode = prime * hashCode + ((getSourceArn() == null) ? 0 : getSourceArn().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateDiscovererResult clone() { try { return (CreateDiscovererResult) 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