/* * 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.osis.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about an existing OpenSearch Ingestion pipeline. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Pipeline implements Serializable, Cloneable, StructuredPojo { /** ** The name of the pipeline. *
*/ private String pipelineName; /** ** The Amazon Resource Name (ARN) of the pipeline. *
*/ private String pipelineArn; /** ** The minimum pipeline capacity, in Ingestion Compute Units (ICUs). *
*/ private Integer minUnits; /** ** The maximum pipeline capacity, in Ingestion Compute Units (ICUs). *
*/ private Integer maxUnits; /** ** The current status of the pipeline. *
*/ private String status; /** ** The reason for the current status of the pipeline. *
*/ private PipelineStatusReason statusReason; /** ** The Data Prepper pipeline configuration in YAML format. *
*/ private String pipelineConfigurationBody; /** ** The date and time when the pipeline was created. *
*/ private java.util.Date createdAt; /** ** The date and time when the pipeline was last updated. *
*/ private java.util.Date lastUpdatedAt; /** ** The ingestion endpoints for the pipeline, which you can send data to. *
*/ private java.util.List* Key-value pairs that represent log publishing settings. *
*/ private LogPublishingOptions logPublishingOptions; /** ** The VPC interface endpoints that have access to the pipeline. *
*/ private java.util.List* The name of the pipeline. *
* * @param pipelineName * The name of the pipeline. */ public void setPipelineName(String pipelineName) { this.pipelineName = pipelineName; } /** ** The name of the pipeline. *
* * @return The name of the pipeline. */ public String getPipelineName() { return this.pipelineName; } /** ** The name of the pipeline. *
* * @param pipelineName * The name of the pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public Pipeline withPipelineName(String pipelineName) { setPipelineName(pipelineName); return this; } /** ** The Amazon Resource Name (ARN) of the pipeline. *
* * @param pipelineArn * The Amazon Resource Name (ARN) of the pipeline. */ public void setPipelineArn(String pipelineArn) { this.pipelineArn = pipelineArn; } /** ** The Amazon Resource Name (ARN) of the pipeline. *
* * @return The Amazon Resource Name (ARN) of the pipeline. */ public String getPipelineArn() { return this.pipelineArn; } /** ** The Amazon Resource Name (ARN) of the pipeline. *
* * @param pipelineArn * The Amazon Resource Name (ARN) of the pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public Pipeline withPipelineArn(String pipelineArn) { setPipelineArn(pipelineArn); return this; } /** ** The minimum pipeline capacity, in Ingestion Compute Units (ICUs). *
* * @param minUnits * The minimum pipeline capacity, in Ingestion Compute Units (ICUs). */ public void setMinUnits(Integer minUnits) { this.minUnits = minUnits; } /** ** The minimum pipeline capacity, in Ingestion Compute Units (ICUs). *
* * @return The minimum pipeline capacity, in Ingestion Compute Units (ICUs). */ public Integer getMinUnits() { return this.minUnits; } /** ** The minimum pipeline capacity, in Ingestion Compute Units (ICUs). *
* * @param minUnits * The minimum pipeline capacity, in Ingestion Compute Units (ICUs). * @return Returns a reference to this object so that method calls can be chained together. */ public Pipeline withMinUnits(Integer minUnits) { setMinUnits(minUnits); return this; } /** ** The maximum pipeline capacity, in Ingestion Compute Units (ICUs). *
* * @param maxUnits * The maximum pipeline capacity, in Ingestion Compute Units (ICUs). */ public void setMaxUnits(Integer maxUnits) { this.maxUnits = maxUnits; } /** ** The maximum pipeline capacity, in Ingestion Compute Units (ICUs). *
* * @return The maximum pipeline capacity, in Ingestion Compute Units (ICUs). */ public Integer getMaxUnits() { return this.maxUnits; } /** ** The maximum pipeline capacity, in Ingestion Compute Units (ICUs). *
* * @param maxUnits * The maximum pipeline capacity, in Ingestion Compute Units (ICUs). * @return Returns a reference to this object so that method calls can be chained together. */ public Pipeline withMaxUnits(Integer maxUnits) { setMaxUnits(maxUnits); return this; } /** ** The current status of the pipeline. *
* * @param status * The current status of the pipeline. * @see PipelineStatus */ public void setStatus(String status) { this.status = status; } /** ** The current status of the pipeline. *
* * @return The current status of the pipeline. * @see PipelineStatus */ public String getStatus() { return this.status; } /** ** The current status of the pipeline. *
* * @param status * The current status of the pipeline. * @return Returns a reference to this object so that method calls can be chained together. * @see PipelineStatus */ public Pipeline withStatus(String status) { setStatus(status); return this; } /** ** The current status of the pipeline. *
* * @param status * The current status of the pipeline. * @return Returns a reference to this object so that method calls can be chained together. * @see PipelineStatus */ public Pipeline withStatus(PipelineStatus status) { this.status = status.toString(); return this; } /** ** The reason for the current status of the pipeline. *
* * @param statusReason * The reason for the current status of the pipeline. */ public void setStatusReason(PipelineStatusReason statusReason) { this.statusReason = statusReason; } /** ** The reason for the current status of the pipeline. *
* * @return The reason for the current status of the pipeline. */ public PipelineStatusReason getStatusReason() { return this.statusReason; } /** ** The reason for the current status of the pipeline. *
* * @param statusReason * The reason for the current status of the pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public Pipeline withStatusReason(PipelineStatusReason statusReason) { setStatusReason(statusReason); return this; } /** ** The Data Prepper pipeline configuration in YAML format. *
* * @param pipelineConfigurationBody * The Data Prepper pipeline configuration in YAML format. */ public void setPipelineConfigurationBody(String pipelineConfigurationBody) { this.pipelineConfigurationBody = pipelineConfigurationBody; } /** ** The Data Prepper pipeline configuration in YAML format. *
* * @return The Data Prepper pipeline configuration in YAML format. */ public String getPipelineConfigurationBody() { return this.pipelineConfigurationBody; } /** ** The Data Prepper pipeline configuration in YAML format. *
* * @param pipelineConfigurationBody * The Data Prepper pipeline configuration in YAML format. * @return Returns a reference to this object so that method calls can be chained together. */ public Pipeline withPipelineConfigurationBody(String pipelineConfigurationBody) { setPipelineConfigurationBody(pipelineConfigurationBody); return this; } /** ** The date and time when the pipeline was created. *
* * @param createdAt * The date and time when the pipeline was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** ** The date and time when the pipeline was created. *
* * @return The date and time when the pipeline was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** ** The date and time when the pipeline was created. *
* * @param createdAt * The date and time when the pipeline was created. * @return Returns a reference to this object so that method calls can be chained together. */ public Pipeline withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** ** The date and time when the pipeline was last updated. *
* * @param lastUpdatedAt * The date and time when the pipeline was last updated. */ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** ** The date and time when the pipeline was last updated. *
* * @return The date and time when the pipeline was last updated. */ public java.util.Date getLastUpdatedAt() { return this.lastUpdatedAt; } /** ** The date and time when the pipeline was last updated. *
* * @param lastUpdatedAt * The date and time when the pipeline was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public Pipeline withLastUpdatedAt(java.util.Date lastUpdatedAt) { setLastUpdatedAt(lastUpdatedAt); return this; } /** ** The ingestion endpoints for the pipeline, which you can send data to. *
* * @return The ingestion endpoints for the pipeline, which you can send data to. */ public java.util.List* The ingestion endpoints for the pipeline, which you can send data to. *
* * @param ingestEndpointUrls * The ingestion endpoints for the pipeline, which you can send data to. */ public void setIngestEndpointUrls(java.util.Collection* The ingestion endpoints for the pipeline, which you can send data to. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setIngestEndpointUrls(java.util.Collection)} or {@link #withIngestEndpointUrls(java.util.Collection)} if * you want to override the existing values. *
* * @param ingestEndpointUrls * The ingestion endpoints for the pipeline, which you can send data to. * @return Returns a reference to this object so that method calls can be chained together. */ public Pipeline withIngestEndpointUrls(String... ingestEndpointUrls) { if (this.ingestEndpointUrls == null) { setIngestEndpointUrls(new java.util.ArrayList* The ingestion endpoints for the pipeline, which you can send data to. *
* * @param ingestEndpointUrls * The ingestion endpoints for the pipeline, which you can send data to. * @return Returns a reference to this object so that method calls can be chained together. */ public Pipeline withIngestEndpointUrls(java.util.Collection* Key-value pairs that represent log publishing settings. *
* * @param logPublishingOptions * Key-value pairs that represent log publishing settings. */ public void setLogPublishingOptions(LogPublishingOptions logPublishingOptions) { this.logPublishingOptions = logPublishingOptions; } /** ** Key-value pairs that represent log publishing settings. *
* * @return Key-value pairs that represent log publishing settings. */ public LogPublishingOptions getLogPublishingOptions() { return this.logPublishingOptions; } /** ** Key-value pairs that represent log publishing settings. *
* * @param logPublishingOptions * Key-value pairs that represent log publishing settings. * @return Returns a reference to this object so that method calls can be chained together. */ public Pipeline withLogPublishingOptions(LogPublishingOptions logPublishingOptions) { setLogPublishingOptions(logPublishingOptions); return this; } /** ** The VPC interface endpoints that have access to the pipeline. *
* * @return The VPC interface endpoints that have access to the pipeline. */ public java.util.List* The VPC interface endpoints that have access to the pipeline. *
* * @param vpcEndpoints * The VPC interface endpoints that have access to the pipeline. */ public void setVpcEndpoints(java.util.Collection* The VPC interface endpoints that have access to the pipeline. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVpcEndpoints(java.util.Collection)} or {@link #withVpcEndpoints(java.util.Collection)} if you want to * override the existing values. *
* * @param vpcEndpoints * The VPC interface endpoints that have access to the pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public Pipeline withVpcEndpoints(VpcEndpoint... vpcEndpoints) { if (this.vpcEndpoints == null) { setVpcEndpoints(new java.util.ArrayList* The VPC interface endpoints that have access to the pipeline. *
* * @param vpcEndpoints * The VPC interface endpoints that have access to the pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public Pipeline withVpcEndpoints(java.util.Collection