/* * 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.sagemaker.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 RenderUiTemplateRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A Template
object containing the worker UI template to render.
*
* A RenderableTask
object containing a representative task to render.
*
* The Amazon Resource Name (ARN) that has access to the S3 objects that are used by the template. *
*/ private String roleArn; /** *
* The HumanTaskUiArn
of the worker UI that you want to render. Do not provide a
* HumanTaskUiArn
if you use the UiTemplate
parameter.
*
* See a list of available Human Ui Amazon Resource Names (ARNs) in UiConfig. *
*/ private String humanTaskUiArn; /** *
* A Template
object containing the worker UI template to render.
*
Template
object containing the worker UI template to render.
*/
public void setUiTemplate(UiTemplate uiTemplate) {
this.uiTemplate = uiTemplate;
}
/**
*
* A Template
object containing the worker UI template to render.
*
Template
object containing the worker UI template to render.
*/
public UiTemplate getUiTemplate() {
return this.uiTemplate;
}
/**
*
* A Template
object containing the worker UI template to render.
*
Template
object containing the worker UI template to render.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RenderUiTemplateRequest withUiTemplate(UiTemplate uiTemplate) {
setUiTemplate(uiTemplate);
return this;
}
/**
*
* A RenderableTask
object containing a representative task to render.
*
RenderableTask
object containing a representative task to render.
*/
public void setTask(RenderableTask task) {
this.task = task;
}
/**
*
* A RenderableTask
object containing a representative task to render.
*
RenderableTask
object containing a representative task to render.
*/
public RenderableTask getTask() {
return this.task;
}
/**
*
* A RenderableTask
object containing a representative task to render.
*
RenderableTask
object containing a representative task to render.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RenderUiTemplateRequest withTask(RenderableTask task) {
setTask(task);
return this;
}
/**
* * The Amazon Resource Name (ARN) that has access to the S3 objects that are used by the template. *
* * @param roleArn * The Amazon Resource Name (ARN) that has access to the S3 objects that are used by the template. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** ** The Amazon Resource Name (ARN) that has access to the S3 objects that are used by the template. *
* * @return The Amazon Resource Name (ARN) that has access to the S3 objects that are used by the template. */ public String getRoleArn() { return this.roleArn; } /** ** The Amazon Resource Name (ARN) that has access to the S3 objects that are used by the template. *
* * @param roleArn * The Amazon Resource Name (ARN) that has access to the S3 objects that are used by the template. * @return Returns a reference to this object so that method calls can be chained together. */ public RenderUiTemplateRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *
* The HumanTaskUiArn
of the worker UI that you want to render. Do not provide a
* HumanTaskUiArn
if you use the UiTemplate
parameter.
*
* See a list of available Human Ui Amazon Resource Names (ARNs) in UiConfig. *
* * @param humanTaskUiArn * TheHumanTaskUiArn
of the worker UI that you want to render. Do not provide a
* HumanTaskUiArn
if you use the UiTemplate
parameter.
* * See a list of available Human Ui Amazon Resource Names (ARNs) in UiConfig. */ public void setHumanTaskUiArn(String humanTaskUiArn) { this.humanTaskUiArn = humanTaskUiArn; } /** *
* The HumanTaskUiArn
of the worker UI that you want to render. Do not provide a
* HumanTaskUiArn
if you use the UiTemplate
parameter.
*
* See a list of available Human Ui Amazon Resource Names (ARNs) in UiConfig. *
* * @return TheHumanTaskUiArn
of the worker UI that you want to render. Do not provide a
* HumanTaskUiArn
if you use the UiTemplate
parameter.
* * See a list of available Human Ui Amazon Resource Names (ARNs) in UiConfig. */ public String getHumanTaskUiArn() { return this.humanTaskUiArn; } /** *
* The HumanTaskUiArn
of the worker UI that you want to render. Do not provide a
* HumanTaskUiArn
if you use the UiTemplate
parameter.
*
* See a list of available Human Ui Amazon Resource Names (ARNs) in UiConfig. *
* * @param humanTaskUiArn * TheHumanTaskUiArn
of the worker UI that you want to render. Do not provide a
* HumanTaskUiArn
if you use the UiTemplate
parameter.
* * See a list of available Human Ui Amazon Resource Names (ARNs) in UiConfig. * @return Returns a reference to this object so that method calls can be chained together. */ public RenderUiTemplateRequest withHumanTaskUiArn(String humanTaskUiArn) { setHumanTaskUiArn(humanTaskUiArn); 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 (getUiTemplate() != null) sb.append("UiTemplate: ").append(getUiTemplate()).append(","); if (getTask() != null) sb.append("Task: ").append(getTask()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getHumanTaskUiArn() != null) sb.append("HumanTaskUiArn: ").append(getHumanTaskUiArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RenderUiTemplateRequest == false) return false; RenderUiTemplateRequest other = (RenderUiTemplateRequest) obj; if (other.getUiTemplate() == null ^ this.getUiTemplate() == null) return false; if (other.getUiTemplate() != null && other.getUiTemplate().equals(this.getUiTemplate()) == false) return false; if (other.getTask() == null ^ this.getTask() == null) return false; if (other.getTask() != null && other.getTask().equals(this.getTask()) == 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.getHumanTaskUiArn() == null ^ this.getHumanTaskUiArn() == null) return false; if (other.getHumanTaskUiArn() != null && other.getHumanTaskUiArn().equals(this.getHumanTaskUiArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUiTemplate() == null) ? 0 : getUiTemplate().hashCode()); hashCode = prime * hashCode + ((getTask() == null) ? 0 : getTask().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getHumanTaskUiArn() == null) ? 0 : getHumanTaskUiArn().hashCode()); return hashCode; } @Override public RenderUiTemplateRequest clone() { return (RenderUiTemplateRequest) super.clone(); } }