com.amazonaws.services.chimesdkmediapipelines.model.StartSpeakerSearchTaskRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-chimesdkmediapipelines Show documentation
/*
* 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.chimesdkmediapipelines.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 StartSpeakerSearchTaskRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights
* pipeline.
*
*/
private String identifier;
/**
*
* The ARN of the voice profile domain that will store the voice profile.
*
*/
private String voiceProfileDomainArn;
/**
*
* The task configuration for the Kinesis video stream source of the media insights pipeline.
*
*/
private KinesisVideoStreamSourceTaskConfiguration kinesisVideoStreamSourceTaskConfiguration;
/**
*
* The unique identifier for the client request. Use a different token for different speaker search tasks.
*
*/
private String clientRequestToken;
/**
*
* The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights
* pipeline.
*
*
* @param identifier
* The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media
* insights pipeline.
*/
public void setIdentifier(String identifier) {
this.identifier = identifier;
}
/**
*
* The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights
* pipeline.
*
*
* @return The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media
* insights pipeline.
*/
public String getIdentifier() {
return this.identifier;
}
/**
*
* The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights
* pipeline.
*
*
* @param identifier
* The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media
* insights pipeline.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartSpeakerSearchTaskRequest withIdentifier(String identifier) {
setIdentifier(identifier);
return this;
}
/**
*
* The ARN of the voice profile domain that will store the voice profile.
*
*
* @param voiceProfileDomainArn
* The ARN of the voice profile domain that will store the voice profile.
*/
public void setVoiceProfileDomainArn(String voiceProfileDomainArn) {
this.voiceProfileDomainArn = voiceProfileDomainArn;
}
/**
*
* The ARN of the voice profile domain that will store the voice profile.
*
*
* @return The ARN of the voice profile domain that will store the voice profile.
*/
public String getVoiceProfileDomainArn() {
return this.voiceProfileDomainArn;
}
/**
*
* The ARN of the voice profile domain that will store the voice profile.
*
*
* @param voiceProfileDomainArn
* The ARN of the voice profile domain that will store the voice profile.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartSpeakerSearchTaskRequest withVoiceProfileDomainArn(String voiceProfileDomainArn) {
setVoiceProfileDomainArn(voiceProfileDomainArn);
return this;
}
/**
*
* The task configuration for the Kinesis video stream source of the media insights pipeline.
*
*
* @param kinesisVideoStreamSourceTaskConfiguration
* The task configuration for the Kinesis video stream source of the media insights pipeline.
*/
public void setKinesisVideoStreamSourceTaskConfiguration(KinesisVideoStreamSourceTaskConfiguration kinesisVideoStreamSourceTaskConfiguration) {
this.kinesisVideoStreamSourceTaskConfiguration = kinesisVideoStreamSourceTaskConfiguration;
}
/**
*
* The task configuration for the Kinesis video stream source of the media insights pipeline.
*
*
* @return The task configuration for the Kinesis video stream source of the media insights pipeline.
*/
public KinesisVideoStreamSourceTaskConfiguration getKinesisVideoStreamSourceTaskConfiguration() {
return this.kinesisVideoStreamSourceTaskConfiguration;
}
/**
*
* The task configuration for the Kinesis video stream source of the media insights pipeline.
*
*
* @param kinesisVideoStreamSourceTaskConfiguration
* The task configuration for the Kinesis video stream source of the media insights pipeline.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartSpeakerSearchTaskRequest withKinesisVideoStreamSourceTaskConfiguration(
KinesisVideoStreamSourceTaskConfiguration kinesisVideoStreamSourceTaskConfiguration) {
setKinesisVideoStreamSourceTaskConfiguration(kinesisVideoStreamSourceTaskConfiguration);
return this;
}
/**
*
* The unique identifier for the client request. Use a different token for different speaker search tasks.
*
*
* @param clientRequestToken
* The unique identifier for the client request. Use a different token for different speaker search tasks.
*/
public void setClientRequestToken(String clientRequestToken) {
this.clientRequestToken = clientRequestToken;
}
/**
*
* The unique identifier for the client request. Use a different token for different speaker search tasks.
*
*
* @return The unique identifier for the client request. Use a different token for different speaker search tasks.
*/
public String getClientRequestToken() {
return this.clientRequestToken;
}
/**
*
* The unique identifier for the client request. Use a different token for different speaker search tasks.
*
*
* @param clientRequestToken
* The unique identifier for the client request. Use a different token for different speaker search tasks.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartSpeakerSearchTaskRequest withClientRequestToken(String clientRequestToken) {
setClientRequestToken(clientRequestToken);
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 (getIdentifier() != null)
sb.append("Identifier: ").append(getIdentifier()).append(",");
if (getVoiceProfileDomainArn() != null)
sb.append("VoiceProfileDomainArn: ").append("***Sensitive Data Redacted***").append(",");
if (getKinesisVideoStreamSourceTaskConfiguration() != null)
sb.append("KinesisVideoStreamSourceTaskConfiguration: ").append(getKinesisVideoStreamSourceTaskConfiguration()).append(",");
if (getClientRequestToken() != null)
sb.append("ClientRequestToken: ").append("***Sensitive Data Redacted***");
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof StartSpeakerSearchTaskRequest == false)
return false;
StartSpeakerSearchTaskRequest other = (StartSpeakerSearchTaskRequest) obj;
if (other.getIdentifier() == null ^ this.getIdentifier() == null)
return false;
if (other.getIdentifier() != null && other.getIdentifier().equals(this.getIdentifier()) == false)
return false;
if (other.getVoiceProfileDomainArn() == null ^ this.getVoiceProfileDomainArn() == null)
return false;
if (other.getVoiceProfileDomainArn() != null && other.getVoiceProfileDomainArn().equals(this.getVoiceProfileDomainArn()) == false)
return false;
if (other.getKinesisVideoStreamSourceTaskConfiguration() == null ^ this.getKinesisVideoStreamSourceTaskConfiguration() == null)
return false;
if (other.getKinesisVideoStreamSourceTaskConfiguration() != null
&& other.getKinesisVideoStreamSourceTaskConfiguration().equals(this.getKinesisVideoStreamSourceTaskConfiguration()) == false)
return false;
if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null)
return false;
if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getIdentifier() == null) ? 0 : getIdentifier().hashCode());
hashCode = prime * hashCode + ((getVoiceProfileDomainArn() == null) ? 0 : getVoiceProfileDomainArn().hashCode());
hashCode = prime * hashCode
+ ((getKinesisVideoStreamSourceTaskConfiguration() == null) ? 0 : getKinesisVideoStreamSourceTaskConfiguration().hashCode());
hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode());
return hashCode;
}
@Override
public StartSpeakerSearchTaskRequest clone() {
return (StartSpeakerSearchTaskRequest) super.clone();
}
}