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

com.amazonaws.services.qconnect.model.PutFeedbackResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Q Connect module holds the client classes that are used for communicating with Amazon Q Connect Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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.qconnect.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant. *

*/ private String assistantArn; /** *

* The identifier of the Amazon Q in Connect assistant. *

*/ private String assistantId; /** *

* Information about the feedback provided. *

*/ private ContentFeedbackData contentFeedback; /** *

* The identifier of the feedback target. *

*/ private String targetId; /** *

* The type of the feedback target. *

*/ private String targetType; /** *

* The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant. *

* * @param assistantArn * The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant. */ public void setAssistantArn(String assistantArn) { this.assistantArn = assistantArn; } /** *

* The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant. *

* * @return The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant. */ public String getAssistantArn() { return this.assistantArn; } /** *

* The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant. *

* * @param assistantArn * The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant. * @return Returns a reference to this object so that method calls can be chained together. */ public PutFeedbackResult withAssistantArn(String assistantArn) { setAssistantArn(assistantArn); return this; } /** *

* The identifier of the Amazon Q in Connect assistant. *

* * @param assistantId * The identifier of the Amazon Q in Connect assistant. */ public void setAssistantId(String assistantId) { this.assistantId = assistantId; } /** *

* The identifier of the Amazon Q in Connect assistant. *

* * @return The identifier of the Amazon Q in Connect assistant. */ public String getAssistantId() { return this.assistantId; } /** *

* The identifier of the Amazon Q in Connect assistant. *

* * @param assistantId * The identifier of the Amazon Q in Connect assistant. * @return Returns a reference to this object so that method calls can be chained together. */ public PutFeedbackResult withAssistantId(String assistantId) { setAssistantId(assistantId); return this; } /** *

* Information about the feedback provided. *

* * @param contentFeedback * Information about the feedback provided. */ public void setContentFeedback(ContentFeedbackData contentFeedback) { this.contentFeedback = contentFeedback; } /** *

* Information about the feedback provided. *

* * @return Information about the feedback provided. */ public ContentFeedbackData getContentFeedback() { return this.contentFeedback; } /** *

* Information about the feedback provided. *

* * @param contentFeedback * Information about the feedback provided. * @return Returns a reference to this object so that method calls can be chained together. */ public PutFeedbackResult withContentFeedback(ContentFeedbackData contentFeedback) { setContentFeedback(contentFeedback); return this; } /** *

* The identifier of the feedback target. *

* * @param targetId * The identifier of the feedback target. */ public void setTargetId(String targetId) { this.targetId = targetId; } /** *

* The identifier of the feedback target. *

* * @return The identifier of the feedback target. */ public String getTargetId() { return this.targetId; } /** *

* The identifier of the feedback target. *

* * @param targetId * The identifier of the feedback target. * @return Returns a reference to this object so that method calls can be chained together. */ public PutFeedbackResult withTargetId(String targetId) { setTargetId(targetId); return this; } /** *

* The type of the feedback target. *

* * @param targetType * The type of the feedback target. * @see TargetType */ public void setTargetType(String targetType) { this.targetType = targetType; } /** *

* The type of the feedback target. *

* * @return The type of the feedback target. * @see TargetType */ public String getTargetType() { return this.targetType; } /** *

* The type of the feedback target. *

* * @param targetType * The type of the feedback target. * @return Returns a reference to this object so that method calls can be chained together. * @see TargetType */ public PutFeedbackResult withTargetType(String targetType) { setTargetType(targetType); return this; } /** *

* The type of the feedback target. *

* * @param targetType * The type of the feedback target. * @return Returns a reference to this object so that method calls can be chained together. * @see TargetType */ public PutFeedbackResult withTargetType(TargetType targetType) { this.targetType = targetType.toString(); 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 (getAssistantArn() != null) sb.append("AssistantArn: ").append(getAssistantArn()).append(","); if (getAssistantId() != null) sb.append("AssistantId: ").append(getAssistantId()).append(","); if (getContentFeedback() != null) sb.append("ContentFeedback: ").append(getContentFeedback()).append(","); if (getTargetId() != null) sb.append("TargetId: ").append(getTargetId()).append(","); if (getTargetType() != null) sb.append("TargetType: ").append(getTargetType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutFeedbackResult == false) return false; PutFeedbackResult other = (PutFeedbackResult) obj; if (other.getAssistantArn() == null ^ this.getAssistantArn() == null) return false; if (other.getAssistantArn() != null && other.getAssistantArn().equals(this.getAssistantArn()) == false) return false; if (other.getAssistantId() == null ^ this.getAssistantId() == null) return false; if (other.getAssistantId() != null && other.getAssistantId().equals(this.getAssistantId()) == false) return false; if (other.getContentFeedback() == null ^ this.getContentFeedback() == null) return false; if (other.getContentFeedback() != null && other.getContentFeedback().equals(this.getContentFeedback()) == false) return false; if (other.getTargetId() == null ^ this.getTargetId() == null) return false; if (other.getTargetId() != null && other.getTargetId().equals(this.getTargetId()) == false) return false; if (other.getTargetType() == null ^ this.getTargetType() == null) return false; if (other.getTargetType() != null && other.getTargetType().equals(this.getTargetType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAssistantArn() == null) ? 0 : getAssistantArn().hashCode()); hashCode = prime * hashCode + ((getAssistantId() == null) ? 0 : getAssistantId().hashCode()); hashCode = prime * hashCode + ((getContentFeedback() == null) ? 0 : getContentFeedback().hashCode()); hashCode = prime * hashCode + ((getTargetId() == null) ? 0 : getTargetId().hashCode()); hashCode = prime * hashCode + ((getTargetType() == null) ? 0 : getTargetType().hashCode()); return hashCode; } @Override public PutFeedbackResult clone() { try { return (PutFeedbackResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy