/* * 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.cloudfront.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* A real-time log configuration. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RealtimeLogConfig implements Serializable, Cloneable { /** ** The Amazon Resource Name (ARN) of this real-time log configuration. *
*/ private String aRN; /** ** The unique name of this real-time log configuration. *
*/ private String name; /** ** The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer * requests that are represented in the real-time log data. The sampling rate is an integer between 1 and 100, * inclusive. *
*/ private Long samplingRate; /** ** Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this * real-time log configuration. *
*/ private com.amazonaws.internal.SdkInternalList* A list of fields that are included in each real-time log record. In an API response, the fields are provided in * the same order in which they are sent to the Amazon Kinesis data stream. *
** For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide. *
*/ private com.amazonaws.internal.SdkInternalList* The Amazon Resource Name (ARN) of this real-time log configuration. *
* * @param aRN * The Amazon Resource Name (ARN) of this real-time log configuration. */ public void setARN(String aRN) { this.aRN = aRN; } /** ** The Amazon Resource Name (ARN) of this real-time log configuration. *
* * @return The Amazon Resource Name (ARN) of this real-time log configuration. */ public String getARN() { return this.aRN; } /** ** The Amazon Resource Name (ARN) of this real-time log configuration. *
* * @param aRN * The Amazon Resource Name (ARN) of this real-time log configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public RealtimeLogConfig withARN(String aRN) { setARN(aRN); return this; } /** ** The unique name of this real-time log configuration. *
* * @param name * The unique name of this real-time log configuration. */ public void setName(String name) { this.name = name; } /** ** The unique name of this real-time log configuration. *
* * @return The unique name of this real-time log configuration. */ public String getName() { return this.name; } /** ** The unique name of this real-time log configuration. *
* * @param name * The unique name of this real-time log configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public RealtimeLogConfig withName(String name) { setName(name); return this; } /** ** The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer * requests that are represented in the real-time log data. The sampling rate is an integer between 1 and 100, * inclusive. *
* * @param samplingRate * The sampling rate for this real-time log configuration. The sampling rate determines the percentage of * viewer requests that are represented in the real-time log data. The sampling rate is an integer between 1 * and 100, inclusive. */ public void setSamplingRate(Long samplingRate) { this.samplingRate = samplingRate; } /** ** The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer * requests that are represented in the real-time log data. The sampling rate is an integer between 1 and 100, * inclusive. *
* * @return The sampling rate for this real-time log configuration. The sampling rate determines the percentage of * viewer requests that are represented in the real-time log data. The sampling rate is an integer between 1 * and 100, inclusive. */ public Long getSamplingRate() { return this.samplingRate; } /** ** The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer * requests that are represented in the real-time log data. The sampling rate is an integer between 1 and 100, * inclusive. *
* * @param samplingRate * The sampling rate for this real-time log configuration. The sampling rate determines the percentage of * viewer requests that are represented in the real-time log data. The sampling rate is an integer between 1 * and 100, inclusive. * @return Returns a reference to this object so that method calls can be chained together. */ public RealtimeLogConfig withSamplingRate(Long samplingRate) { setSamplingRate(samplingRate); return this; } /** ** Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this * real-time log configuration. *
* * @return Contains information about the Amazon Kinesis data stream where you are sending real-time log data for * this real-time log configuration. */ public java.util.List* Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this * real-time log configuration. *
* * @param endPoints * Contains information about the Amazon Kinesis data stream where you are sending real-time log data for * this real-time log configuration. */ public void setEndPoints(java.util.Collection* Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this * real-time log configuration. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEndPoints(java.util.Collection)} or {@link #withEndPoints(java.util.Collection)} if you want to * override the existing values. *
* * @param endPoints * Contains information about the Amazon Kinesis data stream where you are sending real-time log data for * this real-time log configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public RealtimeLogConfig withEndPoints(EndPoint... endPoints) { if (this.endPoints == null) { setEndPoints(new com.amazonaws.internal.SdkInternalList* Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this * real-time log configuration. *
* * @param endPoints * Contains information about the Amazon Kinesis data stream where you are sending real-time log data for * this real-time log configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public RealtimeLogConfig withEndPoints(java.util.Collection* A list of fields that are included in each real-time log record. In an API response, the fields are provided in * the same order in which they are sent to the Amazon Kinesis data stream. *
** For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide. *
* * @return A list of fields that are included in each real-time log record. In an API response, the fields are * provided in the same order in which they are sent to the Amazon Kinesis data stream. *
* For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
*/
public java.util.List
* A list of fields that are included in each real-time log record. In an API response, the fields are provided in
* the same order in which they are sent to the Amazon Kinesis data stream.
*
* For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
*
* For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
*/
public void setFields(java.util.Collection
* A list of fields that are included in each real-time log record. In an API response, the fields are provided in
* the same order in which they are sent to the Amazon Kinesis data stream.
*
* For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setFields(java.util.Collection)} or {@link #withFields(java.util.Collection)} if you want to override the
* existing values.
*
* For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RealtimeLogConfig withFields(String... fields) {
if (this.fields == null) {
setFields(new com.amazonaws.internal.SdkInternalList
* A list of fields that are included in each real-time log record. In an API response, the fields are provided in
* the same order in which they are sent to the Amazon Kinesis data stream.
*
* For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
*
* For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RealtimeLogConfig withFields(java.util.Collection