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

com.amazonaws.services.qconnect.model.PutFeedbackRequest 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;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* 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 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 PutFeedbackRequest 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 PutFeedbackRequest 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 PutFeedbackRequest 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 PutFeedbackRequest 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 PutFeedbackRequest 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 (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 PutFeedbackRequest == false) return false; PutFeedbackRequest other = (PutFeedbackRequest) obj; 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 + ((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 PutFeedbackRequest clone() { return (PutFeedbackRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy