/* * Copyright 2018-2023 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; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DiscovererSummary implements Serializable, Cloneable, StructuredPojo { /** *
* 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; /** ** The Status if the discoverer will discover schemas from events sent from another account. *
*/ private Boolean crossAccount; /** ** Tags associated with the resource. *
*/ private java.util.Map* 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 DiscovererSummary 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 DiscovererSummary 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 DiscovererSummary 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 DiscovererSummary 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 DiscovererSummary withState(DiscovererState state) { this.state = state.toString(); return this; } /** ** The Status if the discoverer will discover schemas from events sent from another account. *
* * @param crossAccount * The Status if the discoverer will discover schemas from events sent from another account. */ public void setCrossAccount(Boolean crossAccount) { this.crossAccount = crossAccount; } /** ** The Status if the discoverer will discover schemas from events sent from another account. *
* * @return The Status if the discoverer will discover schemas from events sent from another account. */ public Boolean getCrossAccount() { return this.crossAccount; } /** ** The Status if the discoverer will discover schemas from events sent from another account. *
* * @param crossAccount * The Status if the discoverer will discover schemas from events sent from another account. * @return Returns a reference to this object so that method calls can be chained together. */ public DiscovererSummary withCrossAccount(Boolean crossAccount) { setCrossAccount(crossAccount); return this; } /** ** The Status if the discoverer will discover schemas from events sent from another account. *
* * @return The Status if the discoverer will discover schemas from events sent from another account. */ public Boolean isCrossAccount() { return this.crossAccount; } /** ** Tags associated with the resource. *
* * @return Tags associated with the resource. */ public java.util.Map* Tags associated with the resource. *
* * @param tags * Tags associated with the resource. */ public void setTags(java.util.Map* 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 DiscovererSummary withTags(java.util.Map