/* * 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.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateDiscovererRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A description for the discoverer. *
*/ private String description; /** ** The ARN of the event bus. *
*/ private String sourceArn; /** ** Support discovery of schemas in events sent to the bus from another account. (default: true). *
*/ private Boolean crossAccount; /** ** Tags associated with the resource. *
*/ private java.util.Map* A description for the discoverer. *
* * @param description * A description for the discoverer. */ public void setDescription(String description) { this.description = description; } /** ** A description for the discoverer. *
* * @return A description for the discoverer. */ public String getDescription() { return this.description; } /** ** A description for the discoverer. *
* * @param description * A description for the discoverer. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDiscovererRequest withDescription(String description) { setDescription(description); 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 CreateDiscovererRequest withSourceArn(String sourceArn) { setSourceArn(sourceArn); return this; } /** ** Support discovery of schemas in events sent to the bus from another account. (default: true). *
* * @param crossAccount * Support discovery of schemas in events sent to the bus from another account. (default: true). */ public void setCrossAccount(Boolean crossAccount) { this.crossAccount = crossAccount; } /** ** Support discovery of schemas in events sent to the bus from another account. (default: true). *
* * @return Support discovery of schemas in events sent to the bus from another account. (default: true). */ public Boolean getCrossAccount() { return this.crossAccount; } /** ** Support discovery of schemas in events sent to the bus from another account. (default: true). *
* * @param crossAccount * Support discovery of schemas in events sent to the bus from another account. (default: true). * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDiscovererRequest withCrossAccount(Boolean crossAccount) { setCrossAccount(crossAccount); return this; } /** ** Support discovery of schemas in events sent to the bus from another account. (default: true). *
* * @return Support discovery of schemas in events sent to the bus from another account. (default: true). */ 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 CreateDiscovererRequest withTags(java.util.Map