@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInput() == null) ? 0 : getInput().hashCode()); hashCode = prime * hashCode + ((getOutput() == null) ? 0 : getOutput().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getSettings() == null) ? 0 : getSettings().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); return hashCode; }
/** * <p> * Kinesis video stream stream that provides the source streaming video. If you are using the AWS CLI, the parameter * name is <code>StreamProcessorInput</code>. * </p> * * @param input * Kinesis video stream stream that provides the source streaming video. If you are using the AWS CLI, the * parameter name is <code>StreamProcessorInput</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStreamProcessorRequest withInput(StreamProcessorInput input) { setInput(input); return this; }
/** * <p> * An identifier you assign to the stream processor. You can use <code>Name</code> to manage the stream processor. * For example, you can get the current status of the stream processor by calling <a>DescribeStreamProcessor</a>. * <code>Name</code> is idempotent. * </p> * * @param name * An identifier you assign to the stream processor. You can use <code>Name</code> to manage the stream * processor. For example, you can get the current status of the stream processor by calling * <a>DescribeStreamProcessor</a>. <code>Name</code> is idempotent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStreamProcessorRequest withName(String name) { setName(name); return this; }
public CreateStreamProcessorResult createStreamProcessor() { final KinesisVideoStream kinesisVideoStream = new KinesisVideoStream().withArn(kinesisVideoStreamArn); final StreamProcessorInput streamProcessorInput = new StreamProcessorInput().withKinesisVideoStream(kinesisVideoStream); final KinesisDataStream kinesisDataStream = new KinesisDataStream().withArn(kinesisDataStreamArn); final StreamProcessorOutput streamProcessorOutput = new StreamProcessorOutput().withKinesisDataStream(kinesisDataStream); final FaceSearchSettings faceSearchSettings = new FaceSearchSettings().withCollectionId(collectionId).withFaceMatchThreshold(matchThreshold); final StreamProcessorSettings streamProcessorSettings = new StreamProcessorSettings().withFaceSearch(faceSearchSettings); final CreateStreamProcessorResult createStreamProcessorResult = rekognitionClient.createStreamProcessor(new CreateStreamProcessorRequest().withInput(streamProcessorInput).withOutput(streamProcessorOutput).withSettings(streamProcessorSettings).withRoleArn(roleArn).withName(streamProcessorName)); log.info("StreamProcessorArn : {} ", createStreamProcessorResult.getStreamProcessorArn()); return createStreamProcessorResult; }
/** * <p> * ARN of the IAM role that allows access to the stream processor. * </p> * * @param roleArn * ARN of the IAM role that allows access to the stream processor. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStreamProcessorRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; }
/** * <p> * Kinesis data stream stream to which Amazon Rekognition Video puts the analysis results. If you are using the AWS * CLI, the parameter name is <code>StreamProcessorOutput</code>. * </p> * * @param output * Kinesis data stream stream to which Amazon Rekognition Video puts the analysis results. If you are using * the AWS CLI, the parameter name is <code>StreamProcessorOutput</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStreamProcessorRequest withOutput(StreamProcessorOutput output) { setOutput(output); return this; }
return false; CreateStreamProcessorRequest other = (CreateStreamProcessorRequest) obj; if (other.getInput() == null ^ this.getInput() == null) return false; if (other.getInput() != null && other.getInput().equals(this.getInput()) == false) return false; if (other.getOutput() == null ^ this.getOutput() == null) return false; if (other.getOutput() != null && other.getOutput().equals(this.getOutput()) == 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.getSettings() == null ^ this.getSettings() == null) return false; if (other.getSettings() != null && other.getSettings().equals(this.getSettings()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; return true;
/** * 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 (getInput() != null) sb.append("Input: ").append(getInput()).append(","); if (getOutput() != null) sb.append("Output: ").append(getOutput()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getSettings() != null) sb.append("Settings: ").append(getSettings()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(CreateStreamProcessorRequest createStreamProcessorRequest, ProtocolMarshaller protocolMarshaller) { if (createStreamProcessorRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createStreamProcessorRequest.getInput(), INPUT_BINDING); protocolMarshaller.marshall(createStreamProcessorRequest.getOutput(), OUTPUT_BINDING); protocolMarshaller.marshall(createStreamProcessorRequest.getName(), NAME_BINDING); protocolMarshaller.marshall(createStreamProcessorRequest.getSettings(), SETTINGS_BINDING); protocolMarshaller.marshall(createStreamProcessorRequest.getRoleArn(), ROLEARN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInput() == null) ? 0 : getInput().hashCode()); hashCode = prime * hashCode + ((getOutput() == null) ? 0 : getOutput().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getSettings() == null) ? 0 : getSettings().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); return hashCode; }
CreateStreamProcessorRequest other = (CreateStreamProcessorRequest) obj; if (other.getInput() == null ^ this.getInput() == null) return false; if (other.getInput() != null && other.getInput().equals(this.getInput()) == false) return false; if (other.getOutput() == null ^ this.getOutput() == null) return false; if (other.getOutput() != null && other.getOutput().equals(this.getOutput()) == 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.getSettings() == null ^ this.getSettings() == null) return false; if (other.getSettings() != null && other.getSettings().equals(this.getSettings()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; return true;
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getInput() != null) sb.append("Input: " + getInput() + ","); if (getOutput() != null) sb.append("Output: " + getOutput() + ","); if (getName() != null) sb.append("Name: " + getName() + ","); if (getSettings() != null) sb.append("Settings: " + getSettings() + ","); if (getRoleArn() != null) sb.append("RoleArn: " + getRoleArn()); sb.append("}"); return sb.toString(); }
jsonWriter.beginObject(); if (createStreamProcessorRequest.getInput() != null) { StreamProcessorInput input = createStreamProcessorRequest.getInput(); jsonWriter.name("Input"); StreamProcessorInputJsonMarshaller.getInstance().marshall(input, jsonWriter); if (createStreamProcessorRequest.getOutput() != null) { StreamProcessorOutput output = createStreamProcessorRequest.getOutput(); jsonWriter.name("Output"); StreamProcessorOutputJsonMarshaller.getInstance().marshall(output, jsonWriter); if (createStreamProcessorRequest.getName() != null) { String name = createStreamProcessorRequest.getName(); jsonWriter.name("Name"); jsonWriter.value(name); if (createStreamProcessorRequest.getSettings() != null) { StreamProcessorSettings settings = createStreamProcessorRequest.getSettings(); jsonWriter.name("Settings"); StreamProcessorSettingsJsonMarshaller.getInstance().marshall(settings, jsonWriter); if (createStreamProcessorRequest.getRoleArn() != null) { String roleArn = createStreamProcessorRequest.getRoleArn(); jsonWriter.name("RoleArn"); jsonWriter.value(roleArn);