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

com.amazonaws.services.pipes.model.PipeLogConfiguration Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon EventBridge Pipes module holds the client classes that are used for communicating with Amazon EventBridge Pipes Service

There is a newer version: 1.12.780
Show newest version
/*
 * 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.pipes.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The logging configuration settings for the pipe. *

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

* The Amazon CloudWatch Logs logging configuration settings for the pipe. *

*/ private CloudwatchLogsLogDestination cloudwatchLogsLogDestination; /** *

* The Amazon Kinesis Data Firehose logging configuration settings for the pipe. *

*/ private FirehoseLogDestination firehoseLogDestination; /** *

* Whether the execution data (specifically, the payload, awsRequest, and * awsResponse fields) is included in the log messages for this pipe. *

*

* This applies to all log destinations for the pipe. *

*

* For more information, see Including execution data in logs in the Amazon EventBridge User Guide. *

*/ private java.util.List includeExecutionData; /** *

* The level of logging detail to include. This applies to all log destinations for the pipe. *

*/ private String level; /** *

* The Amazon S3 logging configuration settings for the pipe. *

*/ private S3LogDestination s3LogDestination; /** *

* The Amazon CloudWatch Logs logging configuration settings for the pipe. *

* * @param cloudwatchLogsLogDestination * The Amazon CloudWatch Logs logging configuration settings for the pipe. */ public void setCloudwatchLogsLogDestination(CloudwatchLogsLogDestination cloudwatchLogsLogDestination) { this.cloudwatchLogsLogDestination = cloudwatchLogsLogDestination; } /** *

* The Amazon CloudWatch Logs logging configuration settings for the pipe. *

* * @return The Amazon CloudWatch Logs logging configuration settings for the pipe. */ public CloudwatchLogsLogDestination getCloudwatchLogsLogDestination() { return this.cloudwatchLogsLogDestination; } /** *

* The Amazon CloudWatch Logs logging configuration settings for the pipe. *

* * @param cloudwatchLogsLogDestination * The Amazon CloudWatch Logs logging configuration settings for the pipe. * @return Returns a reference to this object so that method calls can be chained together. */ public PipeLogConfiguration withCloudwatchLogsLogDestination(CloudwatchLogsLogDestination cloudwatchLogsLogDestination) { setCloudwatchLogsLogDestination(cloudwatchLogsLogDestination); return this; } /** *

* The Amazon Kinesis Data Firehose logging configuration settings for the pipe. *

* * @param firehoseLogDestination * The Amazon Kinesis Data Firehose logging configuration settings for the pipe. */ public void setFirehoseLogDestination(FirehoseLogDestination firehoseLogDestination) { this.firehoseLogDestination = firehoseLogDestination; } /** *

* The Amazon Kinesis Data Firehose logging configuration settings for the pipe. *

* * @return The Amazon Kinesis Data Firehose logging configuration settings for the pipe. */ public FirehoseLogDestination getFirehoseLogDestination() { return this.firehoseLogDestination; } /** *

* The Amazon Kinesis Data Firehose logging configuration settings for the pipe. *

* * @param firehoseLogDestination * The Amazon Kinesis Data Firehose logging configuration settings for the pipe. * @return Returns a reference to this object so that method calls can be chained together. */ public PipeLogConfiguration withFirehoseLogDestination(FirehoseLogDestination firehoseLogDestination) { setFirehoseLogDestination(firehoseLogDestination); return this; } /** *

* Whether the execution data (specifically, the payload, awsRequest, and * awsResponse fields) is included in the log messages for this pipe. *

*

* This applies to all log destinations for the pipe. *

*

* For more information, see Including execution data in logs in the Amazon EventBridge User Guide. *

* * @return Whether the execution data (specifically, the payload, awsRequest, and * awsResponse fields) is included in the log messages for this pipe.

*

* This applies to all log destinations for the pipe. *

*

* For more information, see Including execution data in logs in the Amazon EventBridge User Guide. * @see IncludeExecutionDataOption */ public java.util.List getIncludeExecutionData() { return includeExecutionData; } /** *

* Whether the execution data (specifically, the payload, awsRequest, and * awsResponse fields) is included in the log messages for this pipe. *

*

* This applies to all log destinations for the pipe. *

*

* For more information, see Including execution data in logs in the Amazon EventBridge User Guide. *

* * @param includeExecutionData * Whether the execution data (specifically, the payload, awsRequest, and * awsResponse fields) is included in the log messages for this pipe.

*

* This applies to all log destinations for the pipe. *

*

* For more information, see Including execution data in logs in the Amazon EventBridge User Guide. * @see IncludeExecutionDataOption */ public void setIncludeExecutionData(java.util.Collection includeExecutionData) { if (includeExecutionData == null) { this.includeExecutionData = null; return; } this.includeExecutionData = new java.util.ArrayList(includeExecutionData); } /** *

* Whether the execution data (specifically, the payload, awsRequest, and * awsResponse fields) is included in the log messages for this pipe. *

*

* This applies to all log destinations for the pipe. *

*

* For more information, see Including execution data in logs in the Amazon EventBridge User Guide. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setIncludeExecutionData(java.util.Collection)} or {@link #withIncludeExecutionData(java.util.Collection)} * if you want to override the existing values. *

* * @param includeExecutionData * Whether the execution data (specifically, the payload, awsRequest, and * awsResponse fields) is included in the log messages for this pipe.

*

* This applies to all log destinations for the pipe. *

*

* For more information, see Including execution data in logs in the Amazon EventBridge User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see IncludeExecutionDataOption */ public PipeLogConfiguration withIncludeExecutionData(String... includeExecutionData) { if (this.includeExecutionData == null) { setIncludeExecutionData(new java.util.ArrayList(includeExecutionData.length)); } for (String ele : includeExecutionData) { this.includeExecutionData.add(ele); } return this; } /** *

* Whether the execution data (specifically, the payload, awsRequest, and * awsResponse fields) is included in the log messages for this pipe. *

*

* This applies to all log destinations for the pipe. *

*

* For more information, see Including execution data in logs in the Amazon EventBridge User Guide. *

* * @param includeExecutionData * Whether the execution data (specifically, the payload, awsRequest, and * awsResponse fields) is included in the log messages for this pipe.

*

* This applies to all log destinations for the pipe. *

*

* For more information, see Including execution data in logs in the Amazon EventBridge User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see IncludeExecutionDataOption */ public PipeLogConfiguration withIncludeExecutionData(java.util.Collection includeExecutionData) { setIncludeExecutionData(includeExecutionData); return this; } /** *

* Whether the execution data (specifically, the payload, awsRequest, and * awsResponse fields) is included in the log messages for this pipe. *

*

* This applies to all log destinations for the pipe. *

*

* For more information, see Including execution data in logs in the Amazon EventBridge User Guide. *

* * @param includeExecutionData * Whether the execution data (specifically, the payload, awsRequest, and * awsResponse fields) is included in the log messages for this pipe.

*

* This applies to all log destinations for the pipe. *

*

* For more information, see Including execution data in logs in the Amazon EventBridge User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see IncludeExecutionDataOption */ public PipeLogConfiguration withIncludeExecutionData(IncludeExecutionDataOption... includeExecutionData) { java.util.ArrayList includeExecutionDataCopy = new java.util.ArrayList(includeExecutionData.length); for (IncludeExecutionDataOption value : includeExecutionData) { includeExecutionDataCopy.add(value.toString()); } if (getIncludeExecutionData() == null) { setIncludeExecutionData(includeExecutionDataCopy); } else { getIncludeExecutionData().addAll(includeExecutionDataCopy); } return this; } /** *

* The level of logging detail to include. This applies to all log destinations for the pipe. *

* * @param level * The level of logging detail to include. This applies to all log destinations for the pipe. * @see LogLevel */ public void setLevel(String level) { this.level = level; } /** *

* The level of logging detail to include. This applies to all log destinations for the pipe. *

* * @return The level of logging detail to include. This applies to all log destinations for the pipe. * @see LogLevel */ public String getLevel() { return this.level; } /** *

* The level of logging detail to include. This applies to all log destinations for the pipe. *

* * @param level * The level of logging detail to include. This applies to all log destinations for the pipe. * @return Returns a reference to this object so that method calls can be chained together. * @see LogLevel */ public PipeLogConfiguration withLevel(String level) { setLevel(level); return this; } /** *

* The level of logging detail to include. This applies to all log destinations for the pipe. *

* * @param level * The level of logging detail to include. This applies to all log destinations for the pipe. * @return Returns a reference to this object so that method calls can be chained together. * @see LogLevel */ public PipeLogConfiguration withLevel(LogLevel level) { this.level = level.toString(); return this; } /** *

* The Amazon S3 logging configuration settings for the pipe. *

* * @param s3LogDestination * The Amazon S3 logging configuration settings for the pipe. */ public void setS3LogDestination(S3LogDestination s3LogDestination) { this.s3LogDestination = s3LogDestination; } /** *

* The Amazon S3 logging configuration settings for the pipe. *

* * @return The Amazon S3 logging configuration settings for the pipe. */ public S3LogDestination getS3LogDestination() { return this.s3LogDestination; } /** *

* The Amazon S3 logging configuration settings for the pipe. *

* * @param s3LogDestination * The Amazon S3 logging configuration settings for the pipe. * @return Returns a reference to this object so that method calls can be chained together. */ public PipeLogConfiguration withS3LogDestination(S3LogDestination s3LogDestination) { setS3LogDestination(s3LogDestination); 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 (getCloudwatchLogsLogDestination() != null) sb.append("CloudwatchLogsLogDestination: ").append(getCloudwatchLogsLogDestination()).append(","); if (getFirehoseLogDestination() != null) sb.append("FirehoseLogDestination: ").append(getFirehoseLogDestination()).append(","); if (getIncludeExecutionData() != null) sb.append("IncludeExecutionData: ").append(getIncludeExecutionData()).append(","); if (getLevel() != null) sb.append("Level: ").append(getLevel()).append(","); if (getS3LogDestination() != null) sb.append("S3LogDestination: ").append(getS3LogDestination()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PipeLogConfiguration == false) return false; PipeLogConfiguration other = (PipeLogConfiguration) obj; if (other.getCloudwatchLogsLogDestination() == null ^ this.getCloudwatchLogsLogDestination() == null) return false; if (other.getCloudwatchLogsLogDestination() != null && other.getCloudwatchLogsLogDestination().equals(this.getCloudwatchLogsLogDestination()) == false) return false; if (other.getFirehoseLogDestination() == null ^ this.getFirehoseLogDestination() == null) return false; if (other.getFirehoseLogDestination() != null && other.getFirehoseLogDestination().equals(this.getFirehoseLogDestination()) == false) return false; if (other.getIncludeExecutionData() == null ^ this.getIncludeExecutionData() == null) return false; if (other.getIncludeExecutionData() != null && other.getIncludeExecutionData().equals(this.getIncludeExecutionData()) == false) return false; if (other.getLevel() == null ^ this.getLevel() == null) return false; if (other.getLevel() != null && other.getLevel().equals(this.getLevel()) == false) return false; if (other.getS3LogDestination() == null ^ this.getS3LogDestination() == null) return false; if (other.getS3LogDestination() != null && other.getS3LogDestination().equals(this.getS3LogDestination()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCloudwatchLogsLogDestination() == null) ? 0 : getCloudwatchLogsLogDestination().hashCode()); hashCode = prime * hashCode + ((getFirehoseLogDestination() == null) ? 0 : getFirehoseLogDestination().hashCode()); hashCode = prime * hashCode + ((getIncludeExecutionData() == null) ? 0 : getIncludeExecutionData().hashCode()); hashCode = prime * hashCode + ((getLevel() == null) ? 0 : getLevel().hashCode()); hashCode = prime * hashCode + ((getS3LogDestination() == null) ? 0 : getS3LogDestination().hashCode()); return hashCode; } @Override public PipeLogConfiguration clone() { try { return (PipeLogConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.pipes.model.transform.PipeLogConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy