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

com.amazonaws.services.pipes.model.UpdatePipeRequest 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.AmazonWebServiceRequest;

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

    /**
     * 

* A description of the pipe. *

*/ private String description; /** *

* The state the pipe should be in. *

*/ private String desiredState; /** *

* The ARN of the enrichment resource. *

*/ private String enrichment; /** *

* The parameters required to set up enrichment on your pipe. *

*/ private PipeEnrichmentParameters enrichmentParameters; /** *

* The logging configuration settings for the pipe. *

*/ private PipeLogConfigurationParameters logConfiguration; /** *

* The name of the pipe. *

*/ private String name; /** *

* The ARN of the role that allows the pipe to send data to the target. *

*/ private String roleArn; /** *

* The parameters required to set up a source for your pipe. *

*/ private UpdatePipeSourceParameters sourceParameters; /** *

* The ARN of the target resource. *

*/ private String target; /** *

* The parameters required to set up a target for your pipe. *

*

* For more information about pipe target parameters, including how to use dynamic path parameters, see Target parameters * in the Amazon EventBridge User Guide. *

*/ private PipeTargetParameters targetParameters; /** *

* A description of the pipe. *

* * @param description * A description of the pipe. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the pipe. *

* * @return A description of the pipe. */ public String getDescription() { return this.description; } /** *

* A description of the pipe. *

* * @param description * A description of the pipe. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePipeRequest withDescription(String description) { setDescription(description); return this; } /** *

* The state the pipe should be in. *

* * @param desiredState * The state the pipe should be in. * @see RequestedPipeState */ public void setDesiredState(String desiredState) { this.desiredState = desiredState; } /** *

* The state the pipe should be in. *

* * @return The state the pipe should be in. * @see RequestedPipeState */ public String getDesiredState() { return this.desiredState; } /** *

* The state the pipe should be in. *

* * @param desiredState * The state the pipe should be in. * @return Returns a reference to this object so that method calls can be chained together. * @see RequestedPipeState */ public UpdatePipeRequest withDesiredState(String desiredState) { setDesiredState(desiredState); return this; } /** *

* The state the pipe should be in. *

* * @param desiredState * The state the pipe should be in. * @return Returns a reference to this object so that method calls can be chained together. * @see RequestedPipeState */ public UpdatePipeRequest withDesiredState(RequestedPipeState desiredState) { this.desiredState = desiredState.toString(); return this; } /** *

* The ARN of the enrichment resource. *

* * @param enrichment * The ARN of the enrichment resource. */ public void setEnrichment(String enrichment) { this.enrichment = enrichment; } /** *

* The ARN of the enrichment resource. *

* * @return The ARN of the enrichment resource. */ public String getEnrichment() { return this.enrichment; } /** *

* The ARN of the enrichment resource. *

* * @param enrichment * The ARN of the enrichment resource. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePipeRequest withEnrichment(String enrichment) { setEnrichment(enrichment); return this; } /** *

* The parameters required to set up enrichment on your pipe. *

* * @param enrichmentParameters * The parameters required to set up enrichment on your pipe. */ public void setEnrichmentParameters(PipeEnrichmentParameters enrichmentParameters) { this.enrichmentParameters = enrichmentParameters; } /** *

* The parameters required to set up enrichment on your pipe. *

* * @return The parameters required to set up enrichment on your pipe. */ public PipeEnrichmentParameters getEnrichmentParameters() { return this.enrichmentParameters; } /** *

* The parameters required to set up enrichment on your pipe. *

* * @param enrichmentParameters * The parameters required to set up enrichment on your pipe. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePipeRequest withEnrichmentParameters(PipeEnrichmentParameters enrichmentParameters) { setEnrichmentParameters(enrichmentParameters); return this; } /** *

* The logging configuration settings for the pipe. *

* * @param logConfiguration * The logging configuration settings for the pipe. */ public void setLogConfiguration(PipeLogConfigurationParameters logConfiguration) { this.logConfiguration = logConfiguration; } /** *

* The logging configuration settings for the pipe. *

* * @return The logging configuration settings for the pipe. */ public PipeLogConfigurationParameters getLogConfiguration() { return this.logConfiguration; } /** *

* The logging configuration settings for the pipe. *

* * @param logConfiguration * The logging configuration settings for the pipe. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePipeRequest withLogConfiguration(PipeLogConfigurationParameters logConfiguration) { setLogConfiguration(logConfiguration); return this; } /** *

* The name of the pipe. *

* * @param name * The name of the pipe. */ public void setName(String name) { this.name = name; } /** *

* The name of the pipe. *

* * @return The name of the pipe. */ public String getName() { return this.name; } /** *

* The name of the pipe. *

* * @param name * The name of the pipe. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePipeRequest withName(String name) { setName(name); return this; } /** *

* The ARN of the role that allows the pipe to send data to the target. *

* * @param roleArn * The ARN of the role that allows the pipe to send data to the target. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The ARN of the role that allows the pipe to send data to the target. *

* * @return The ARN of the role that allows the pipe to send data to the target. */ public String getRoleArn() { return this.roleArn; } /** *

* The ARN of the role that allows the pipe to send data to the target. *

* * @param roleArn * The ARN of the role that allows the pipe to send data to the target. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePipeRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

* The parameters required to set up a source for your pipe. *

* * @param sourceParameters * The parameters required to set up a source for your pipe. */ public void setSourceParameters(UpdatePipeSourceParameters sourceParameters) { this.sourceParameters = sourceParameters; } /** *

* The parameters required to set up a source for your pipe. *

* * @return The parameters required to set up a source for your pipe. */ public UpdatePipeSourceParameters getSourceParameters() { return this.sourceParameters; } /** *

* The parameters required to set up a source for your pipe. *

* * @param sourceParameters * The parameters required to set up a source for your pipe. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePipeRequest withSourceParameters(UpdatePipeSourceParameters sourceParameters) { setSourceParameters(sourceParameters); return this; } /** *

* The ARN of the target resource. *

* * @param target * The ARN of the target resource. */ public void setTarget(String target) { this.target = target; } /** *

* The ARN of the target resource. *

* * @return The ARN of the target resource. */ public String getTarget() { return this.target; } /** *

* The ARN of the target resource. *

* * @param target * The ARN of the target resource. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePipeRequest withTarget(String target) { setTarget(target); return this; } /** *

* The parameters required to set up a target for your pipe. *

*

* For more information about pipe target parameters, including how to use dynamic path parameters, see Target parameters * in the Amazon EventBridge User Guide. *

* * @param targetParameters * The parameters required to set up a target for your pipe.

*

* For more information about pipe target parameters, including how to use dynamic path parameters, see Target * parameters in the Amazon EventBridge User Guide. */ public void setTargetParameters(PipeTargetParameters targetParameters) { this.targetParameters = targetParameters; } /** *

* The parameters required to set up a target for your pipe. *

*

* For more information about pipe target parameters, including how to use dynamic path parameters, see Target parameters * in the Amazon EventBridge User Guide. *

* * @return The parameters required to set up a target for your pipe.

*

* For more information about pipe target parameters, including how to use dynamic path parameters, see Target * parameters in the Amazon EventBridge User Guide. */ public PipeTargetParameters getTargetParameters() { return this.targetParameters; } /** *

* The parameters required to set up a target for your pipe. *

*

* For more information about pipe target parameters, including how to use dynamic path parameters, see Target parameters * in the Amazon EventBridge User Guide. *

* * @param targetParameters * The parameters required to set up a target for your pipe.

*

* For more information about pipe target parameters, including how to use dynamic path parameters, see Target * parameters in the Amazon EventBridge User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePipeRequest withTargetParameters(PipeTargetParameters targetParameters) { setTargetParameters(targetParameters); 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 (getDescription() != null) sb.append("Description: ").append("***Sensitive Data Redacted***").append(","); if (getDesiredState() != null) sb.append("DesiredState: ").append(getDesiredState()).append(","); if (getEnrichment() != null) sb.append("Enrichment: ").append(getEnrichment()).append(","); if (getEnrichmentParameters() != null) sb.append("EnrichmentParameters: ").append(getEnrichmentParameters()).append(","); if (getLogConfiguration() != null) sb.append("LogConfiguration: ").append(getLogConfiguration()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getSourceParameters() != null) sb.append("SourceParameters: ").append(getSourceParameters()).append(","); if (getTarget() != null) sb.append("Target: ").append(getTarget()).append(","); if (getTargetParameters() != null) sb.append("TargetParameters: ").append(getTargetParameters()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdatePipeRequest == false) return false; UpdatePipeRequest other = (UpdatePipeRequest) obj; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getDesiredState() == null ^ this.getDesiredState() == null) return false; if (other.getDesiredState() != null && other.getDesiredState().equals(this.getDesiredState()) == false) return false; if (other.getEnrichment() == null ^ this.getEnrichment() == null) return false; if (other.getEnrichment() != null && other.getEnrichment().equals(this.getEnrichment()) == false) return false; if (other.getEnrichmentParameters() == null ^ this.getEnrichmentParameters() == null) return false; if (other.getEnrichmentParameters() != null && other.getEnrichmentParameters().equals(this.getEnrichmentParameters()) == false) return false; if (other.getLogConfiguration() == null ^ this.getLogConfiguration() == null) return false; if (other.getLogConfiguration() != null && other.getLogConfiguration().equals(this.getLogConfiguration()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getSourceParameters() == null ^ this.getSourceParameters() == null) return false; if (other.getSourceParameters() != null && other.getSourceParameters().equals(this.getSourceParameters()) == false) return false; if (other.getTarget() == null ^ this.getTarget() == null) return false; if (other.getTarget() != null && other.getTarget().equals(this.getTarget()) == false) return false; if (other.getTargetParameters() == null ^ this.getTargetParameters() == null) return false; if (other.getTargetParameters() != null && other.getTargetParameters().equals(this.getTargetParameters()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDesiredState() == null) ? 0 : getDesiredState().hashCode()); hashCode = prime * hashCode + ((getEnrichment() == null) ? 0 : getEnrichment().hashCode()); hashCode = prime * hashCode + ((getEnrichmentParameters() == null) ? 0 : getEnrichmentParameters().hashCode()); hashCode = prime * hashCode + ((getLogConfiguration() == null) ? 0 : getLogConfiguration().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getSourceParameters() == null) ? 0 : getSourceParameters().hashCode()); hashCode = prime * hashCode + ((getTarget() == null) ? 0 : getTarget().hashCode()); hashCode = prime * hashCode + ((getTargetParameters() == null) ? 0 : getTargetParameters().hashCode()); return hashCode; } @Override public UpdatePipeRequest clone() { return (UpdatePipeRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy