/* * 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.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreatePipelineRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines owned by * an account within an Amazon Web Services Region. *
*/ private String pipelineName; /** ** 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 pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a
* .yaml file. If you provide the configuration as a string, each new line must be escaped with \n
.
*
* Key-value pairs to configure log publishing. *
*/ private LogPublishingOptions logPublishingOptions; /** ** Container for the values required to configure VPC access for the pipeline. If you don't specify these values, * OpenSearch Ingestion creates the pipeline with a public endpoint. *
*/ private VpcOptions vpcOptions; /** ** List of tags to add to the pipeline upon creation. *
*/ private java.util.List* The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines owned by * an account within an Amazon Web Services Region. *
* * @param pipelineName * The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines * owned by an account within an Amazon Web Services Region. */ public void setPipelineName(String pipelineName) { this.pipelineName = pipelineName; } /** ** The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines owned by * an account within an Amazon Web Services Region. *
* * @return The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines * owned by an account within an Amazon Web Services Region. */ public String getPipelineName() { return this.pipelineName; } /** ** The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines owned by * an account within an Amazon Web Services Region. *
* * @param pipelineName * The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines * owned by an account within an Amazon Web Services Region. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePipelineRequest withPipelineName(String pipelineName) { setPipelineName(pipelineName); 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 CreatePipelineRequest 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 CreatePipelineRequest withMaxUnits(Integer maxUnits) { setMaxUnits(maxUnits); return this; } /** *
* The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a
* .yaml file. If you provide the configuration as a string, each new line must be escaped with \n
.
*
\n
.
*/
public void setPipelineConfigurationBody(String pipelineConfigurationBody) {
this.pipelineConfigurationBody = pipelineConfigurationBody;
}
/**
*
* The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a
* .yaml file. If you provide the configuration as a string, each new line must be escaped with \n
.
*
\n
.
*/
public String getPipelineConfigurationBody() {
return this.pipelineConfigurationBody;
}
/**
*
* The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a
* .yaml file. If you provide the configuration as a string, each new line must be escaped with \n
.
*
\n
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreatePipelineRequest withPipelineConfigurationBody(String pipelineConfigurationBody) {
setPipelineConfigurationBody(pipelineConfigurationBody);
return this;
}
/**
* * Key-value pairs to configure log publishing. *
* * @param logPublishingOptions * Key-value pairs to configure log publishing. */ public void setLogPublishingOptions(LogPublishingOptions logPublishingOptions) { this.logPublishingOptions = logPublishingOptions; } /** ** Key-value pairs to configure log publishing. *
* * @return Key-value pairs to configure log publishing. */ public LogPublishingOptions getLogPublishingOptions() { return this.logPublishingOptions; } /** ** Key-value pairs to configure log publishing. *
* * @param logPublishingOptions * Key-value pairs to configure log publishing. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePipelineRequest withLogPublishingOptions(LogPublishingOptions logPublishingOptions) { setLogPublishingOptions(logPublishingOptions); return this; } /** ** Container for the values required to configure VPC access for the pipeline. If you don't specify these values, * OpenSearch Ingestion creates the pipeline with a public endpoint. *
* * @param vpcOptions * Container for the values required to configure VPC access for the pipeline. If you don't specify these * values, OpenSearch Ingestion creates the pipeline with a public endpoint. */ public void setVpcOptions(VpcOptions vpcOptions) { this.vpcOptions = vpcOptions; } /** ** Container for the values required to configure VPC access for the pipeline. If you don't specify these values, * OpenSearch Ingestion creates the pipeline with a public endpoint. *
* * @return Container for the values required to configure VPC access for the pipeline. If you don't specify these * values, OpenSearch Ingestion creates the pipeline with a public endpoint. */ public VpcOptions getVpcOptions() { return this.vpcOptions; } /** ** Container for the values required to configure VPC access for the pipeline. If you don't specify these values, * OpenSearch Ingestion creates the pipeline with a public endpoint. *
* * @param vpcOptions * Container for the values required to configure VPC access for the pipeline. If you don't specify these * values, OpenSearch Ingestion creates the pipeline with a public endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePipelineRequest withVpcOptions(VpcOptions vpcOptions) { setVpcOptions(vpcOptions); return this; } /** ** List of tags to add to the pipeline upon creation. *
* * @return List of tags to add to the pipeline upon creation. */ public java.util.List* List of tags to add to the pipeline upon creation. *
* * @param tags * List of tags to add to the pipeline upon creation. */ public void setTags(java.util.Collection* List of tags to add to the pipeline upon creation. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * List of tags to add to the pipeline upon creation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePipelineRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* List of tags to add to the pipeline upon creation. *
* * @param tags * List of tags to add to the pipeline upon creation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePipelineRequest withTags(java.util.Collection