/* * 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.gluedatabrew.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 SendProjectSessionActionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* If true, the result of the recipe step will be returned, but not applied. *

*/ private Boolean preview; /** *

* The name of the project to apply the action to. *

*/ private String name; private RecipeStep recipeStep; /** *

* The index from which to preview a step. This index is used to preview the result of steps that have already been * applied, so that the resulting view frame is from earlier in the view frame stack. *

*/ private Integer stepIndex; /** *

* A unique identifier for an interactive session that's currently open and ready for work. The action will be * performed on this session. *

*/ private String clientSessionId; private ViewFrame viewFrame; /** *

* If true, the result of the recipe step will be returned, but not applied. *

* * @param preview * If true, the result of the recipe step will be returned, but not applied. */ public void setPreview(Boolean preview) { this.preview = preview; } /** *

* If true, the result of the recipe step will be returned, but not applied. *

* * @return If true, the result of the recipe step will be returned, but not applied. */ public Boolean getPreview() { return this.preview; } /** *

* If true, the result of the recipe step will be returned, but not applied. *

* * @param preview * If true, the result of the recipe step will be returned, but not applied. * @return Returns a reference to this object so that method calls can be chained together. */ public SendProjectSessionActionRequest withPreview(Boolean preview) { setPreview(preview); return this; } /** *

* If true, the result of the recipe step will be returned, but not applied. *

* * @return If true, the result of the recipe step will be returned, but not applied. */ public Boolean isPreview() { return this.preview; } /** *

* The name of the project to apply the action to. *

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

* The name of the project to apply the action to. *

* * @return The name of the project to apply the action to. */ public String getName() { return this.name; } /** *

* The name of the project to apply the action to. *

* * @param name * The name of the project to apply the action to. * @return Returns a reference to this object so that method calls can be chained together. */ public SendProjectSessionActionRequest withName(String name) { setName(name); return this; } /** * @param recipeStep */ public void setRecipeStep(RecipeStep recipeStep) { this.recipeStep = recipeStep; } /** * @return */ public RecipeStep getRecipeStep() { return this.recipeStep; } /** * @param recipeStep * @return Returns a reference to this object so that method calls can be chained together. */ public SendProjectSessionActionRequest withRecipeStep(RecipeStep recipeStep) { setRecipeStep(recipeStep); return this; } /** *

* The index from which to preview a step. This index is used to preview the result of steps that have already been * applied, so that the resulting view frame is from earlier in the view frame stack. *

* * @param stepIndex * The index from which to preview a step. This index is used to preview the result of steps that have * already been applied, so that the resulting view frame is from earlier in the view frame stack. */ public void setStepIndex(Integer stepIndex) { this.stepIndex = stepIndex; } /** *

* The index from which to preview a step. This index is used to preview the result of steps that have already been * applied, so that the resulting view frame is from earlier in the view frame stack. *

* * @return The index from which to preview a step. This index is used to preview the result of steps that have * already been applied, so that the resulting view frame is from earlier in the view frame stack. */ public Integer getStepIndex() { return this.stepIndex; } /** *

* The index from which to preview a step. This index is used to preview the result of steps that have already been * applied, so that the resulting view frame is from earlier in the view frame stack. *

* * @param stepIndex * The index from which to preview a step. This index is used to preview the result of steps that have * already been applied, so that the resulting view frame is from earlier in the view frame stack. * @return Returns a reference to this object so that method calls can be chained together. */ public SendProjectSessionActionRequest withStepIndex(Integer stepIndex) { setStepIndex(stepIndex); return this; } /** *

* A unique identifier for an interactive session that's currently open and ready for work. The action will be * performed on this session. *

* * @param clientSessionId * A unique identifier for an interactive session that's currently open and ready for work. The action will * be performed on this session. */ public void setClientSessionId(String clientSessionId) { this.clientSessionId = clientSessionId; } /** *

* A unique identifier for an interactive session that's currently open and ready for work. The action will be * performed on this session. *

* * @return A unique identifier for an interactive session that's currently open and ready for work. The action will * be performed on this session. */ public String getClientSessionId() { return this.clientSessionId; } /** *

* A unique identifier for an interactive session that's currently open and ready for work. The action will be * performed on this session. *

* * @param clientSessionId * A unique identifier for an interactive session that's currently open and ready for work. The action will * be performed on this session. * @return Returns a reference to this object so that method calls can be chained together. */ public SendProjectSessionActionRequest withClientSessionId(String clientSessionId) { setClientSessionId(clientSessionId); return this; } /** * @param viewFrame */ public void setViewFrame(ViewFrame viewFrame) { this.viewFrame = viewFrame; } /** * @return */ public ViewFrame getViewFrame() { return this.viewFrame; } /** * @param viewFrame * @return Returns a reference to this object so that method calls can be chained together. */ public SendProjectSessionActionRequest withViewFrame(ViewFrame viewFrame) { setViewFrame(viewFrame); 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 (getPreview() != null) sb.append("Preview: ").append(getPreview()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getRecipeStep() != null) sb.append("RecipeStep: ").append(getRecipeStep()).append(","); if (getStepIndex() != null) sb.append("StepIndex: ").append(getStepIndex()).append(","); if (getClientSessionId() != null) sb.append("ClientSessionId: ").append("***Sensitive Data Redacted***").append(","); if (getViewFrame() != null) sb.append("ViewFrame: ").append(getViewFrame()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SendProjectSessionActionRequest == false) return false; SendProjectSessionActionRequest other = (SendProjectSessionActionRequest) obj; if (other.getPreview() == null ^ this.getPreview() == null) return false; if (other.getPreview() != null && other.getPreview().equals(this.getPreview()) == 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.getRecipeStep() == null ^ this.getRecipeStep() == null) return false; if (other.getRecipeStep() != null && other.getRecipeStep().equals(this.getRecipeStep()) == false) return false; if (other.getStepIndex() == null ^ this.getStepIndex() == null) return false; if (other.getStepIndex() != null && other.getStepIndex().equals(this.getStepIndex()) == false) return false; if (other.getClientSessionId() == null ^ this.getClientSessionId() == null) return false; if (other.getClientSessionId() != null && other.getClientSessionId().equals(this.getClientSessionId()) == false) return false; if (other.getViewFrame() == null ^ this.getViewFrame() == null) return false; if (other.getViewFrame() != null && other.getViewFrame().equals(this.getViewFrame()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPreview() == null) ? 0 : getPreview().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getRecipeStep() == null) ? 0 : getRecipeStep().hashCode()); hashCode = prime * hashCode + ((getStepIndex() == null) ? 0 : getStepIndex().hashCode()); hashCode = prime * hashCode + ((getClientSessionId() == null) ? 0 : getClientSessionId().hashCode()); hashCode = prime * hashCode + ((getViewFrame() == null) ? 0 : getViewFrame().hashCode()); return hashCode; } @Override public SendProjectSessionActionRequest clone() { return (SendProjectSessionActionRequest) super.clone(); } }