/* * 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.cloudtrail.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains configuration information about the channel. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SourceConfig implements Serializable, Cloneable, StructuredPojo { /** ** Specifies whether the channel applies to a single Region or to all Regions. *
*/ private Boolean applyToAllRegions; /** ** The advanced event selectors that are configured for the channel. *
*/ private com.amazonaws.internal.SdkInternalList* Specifies whether the channel applies to a single Region or to all Regions. *
* * @param applyToAllRegions * Specifies whether the channel applies to a single Region or to all Regions. */ public void setApplyToAllRegions(Boolean applyToAllRegions) { this.applyToAllRegions = applyToAllRegions; } /** ** Specifies whether the channel applies to a single Region or to all Regions. *
* * @return Specifies whether the channel applies to a single Region or to all Regions. */ public Boolean getApplyToAllRegions() { return this.applyToAllRegions; } /** ** Specifies whether the channel applies to a single Region or to all Regions. *
* * @param applyToAllRegions * Specifies whether the channel applies to a single Region or to all Regions. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceConfig withApplyToAllRegions(Boolean applyToAllRegions) { setApplyToAllRegions(applyToAllRegions); return this; } /** ** Specifies whether the channel applies to a single Region or to all Regions. *
* * @return Specifies whether the channel applies to a single Region or to all Regions. */ public Boolean isApplyToAllRegions() { return this.applyToAllRegions; } /** ** The advanced event selectors that are configured for the channel. *
* * @return The advanced event selectors that are configured for the channel. */ public java.util.List* The advanced event selectors that are configured for the channel. *
* * @param advancedEventSelectors * The advanced event selectors that are configured for the channel. */ public void setAdvancedEventSelectors(java.util.Collection* The advanced event selectors that are configured for the channel. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAdvancedEventSelectors(java.util.Collection)} or * {@link #withAdvancedEventSelectors(java.util.Collection)} if you want to override the existing values. *
* * @param advancedEventSelectors * The advanced event selectors that are configured for the channel. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceConfig withAdvancedEventSelectors(AdvancedEventSelector... advancedEventSelectors) { if (this.advancedEventSelectors == null) { setAdvancedEventSelectors(new com.amazonaws.internal.SdkInternalList* The advanced event selectors that are configured for the channel. *
* * @param advancedEventSelectors * The advanced event selectors that are configured for the channel. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceConfig withAdvancedEventSelectors(java.util.Collection