/* * Copyright 2010-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.rekognition.model; import java.io.Serializable; public class DescribeStreamProcessorResult implements Serializable { /** *

* Name of the stream processor. *

*

* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9_.\-]+
*/ private String name; /** *

* ARN of the stream processor. *

*

* Constraints:
* Pattern: * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:streamprocessor\/.+$) *
*/ private String streamProcessorArn; /** *

* Current status of the stream processor. *

*

* Constraints:
* Allowed Values: STOPPED, STARTING, RUNNING, FAILED, STOPPING, * UPDATING */ private String status; /** *

* Detailed status message about the stream processor. *

*/ private String statusMessage; /** *

* Date and time the stream processor was created *

*/ private java.util.Date creationTimestamp; /** *

* The time, in Unix format, the stream processor was last updated. For * example, when the stream processor moves from a running state to a failed * state, or when the user starts or stops the stream processor. *

*/ private java.util.Date lastUpdateTimestamp; /** *

* Kinesis video stream that provides the source streaming video. *

*/ private StreamProcessorInput input; /** *

* Kinesis data stream to which Amazon Rekognition Video puts the analysis * results. *

*/ private StreamProcessorOutput output; /** *

* ARN of the IAM role that allows access to the stream processor. *

*

* Constraints:
* Pattern: arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+
*/ private String roleArn; /** *

* Input parameters used in a streaming video analyzed by a stream * processor. You can use FaceSearch to recognize faces in a * streaming video, or you can use ConnectedHome to detect * labels. *

*/ private StreamProcessorSettings settings; /** *

* The Amazon Simple Notification Service topic to which Amazon Rekognition * publishes the object detection results and completion status of a video * analysis operation. *

*

* Amazon Rekognition publishes a notification the first time an object of * interest or a person is detected in the video stream. For example, if * Amazon Rekognition detects a person at second 2, a pet at second 4, and a * person again at second 5, Amazon Rekognition sends 2 object class * detected notifications, one for a person at second 2 and one for a pet at * second 4. *

*

* Amazon Rekognition also publishes an an end-of-session notification with * a summary when the stream processing session is complete. *

*/ private StreamProcessorNotificationChannel notificationChannel; /** *

* The identifier for your AWS Key Management Service key (AWS KMS key). * This is an optional parameter for label detection stream processors. *

*

* Constraints:
* Length: 1 - 2048
* Pattern: ^[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,2048}$
*/ private String kmsKeyId; /** *

* Specifies locations in the frames where Amazon Rekognition checks for * objects or people. This is an optional parameter for label detection * stream processors. *

*/ private java.util.List regionsOfInterest; /** *

* Shows whether you are sharing data with Rekognition to improve model * performance. You can choose this option at the account level or on a * per-stream basis. Note that if you opt out at the account level this * setting is ignored on individual streams. *

*/ private StreamProcessorDataSharingPreference dataSharingPreference; /** *

* Name of the stream processor. *

*

* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9_.\-]+
* * @return

* Name of the stream processor. *

*/ public String getName() { return name; } /** *

* Name of the stream processor. *

*

* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9_.\-]+
* * @param name

* Name of the stream processor. *

*/ public void setName(String name) { this.name = name; } /** *

* Name of the stream processor. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9_.\-]+
* * @param name

* Name of the stream processor. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeStreamProcessorResult withName(String name) { this.name = name; return this; } /** *

* ARN of the stream processor. *

*

* Constraints:
* Pattern: * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:streamprocessor\/.+$) *
* * @return

* ARN of the stream processor. *

*/ public String getStreamProcessorArn() { return streamProcessorArn; } /** *

* ARN of the stream processor. *

*

* Constraints:
* Pattern: * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:streamprocessor\/.+$) *
* * @param streamProcessorArn

* ARN of the stream processor. *

*/ public void setStreamProcessorArn(String streamProcessorArn) { this.streamProcessorArn = streamProcessorArn; } /** *

* ARN of the stream processor. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Pattern: * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:streamprocessor\/.+$) *
* * @param streamProcessorArn

* ARN of the stream processor. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeStreamProcessorResult withStreamProcessorArn(String streamProcessorArn) { this.streamProcessorArn = streamProcessorArn; return this; } /** *

* Current status of the stream processor. *

*

* Constraints:
* Allowed Values: STOPPED, STARTING, RUNNING, FAILED, STOPPING, * UPDATING * * @return

* Current status of the stream processor. *

* @see StreamProcessorStatus */ public String getStatus() { return status; } /** *

* Current status of the stream processor. *

*

* Constraints:
* Allowed Values: STOPPED, STARTING, RUNNING, FAILED, STOPPING, * UPDATING * * @param status

* Current status of the stream processor. *

* @see StreamProcessorStatus */ public void setStatus(String status) { this.status = status; } /** *

* Current status of the stream processor. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Allowed Values: STOPPED, STARTING, RUNNING, FAILED, STOPPING, * UPDATING * * @param status

* Current status of the stream processor. *

* @return A reference to this updated object so that method calls can be * chained together. * @see StreamProcessorStatus */ public DescribeStreamProcessorResult withStatus(String status) { this.status = status; return this; } /** *

* Current status of the stream processor. *

*

* Constraints:
* Allowed Values: STOPPED, STARTING, RUNNING, FAILED, STOPPING, * UPDATING * * @param status

* Current status of the stream processor. *

* @see StreamProcessorStatus */ public void setStatus(StreamProcessorStatus status) { this.status = status.toString(); } /** *

* Current status of the stream processor. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Allowed Values: STOPPED, STARTING, RUNNING, FAILED, STOPPING, * UPDATING * * @param status

* Current status of the stream processor. *

* @return A reference to this updated object so that method calls can be * chained together. * @see StreamProcessorStatus */ public DescribeStreamProcessorResult withStatus(StreamProcessorStatus status) { this.status = status.toString(); return this; } /** *

* Detailed status message about the stream processor. *

* * @return

* Detailed status message about the stream processor. *

*/ public String getStatusMessage() { return statusMessage; } /** *

* Detailed status message about the stream processor. *

* * @param statusMessage

* Detailed status message about the stream processor. *

*/ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** *

* Detailed status message about the stream processor. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param statusMessage

* Detailed status message about the stream processor. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeStreamProcessorResult withStatusMessage(String statusMessage) { this.statusMessage = statusMessage; return this; } /** *

* Date and time the stream processor was created *

* * @return

* Date and time the stream processor was created *

*/ public java.util.Date getCreationTimestamp() { return creationTimestamp; } /** *

* Date and time the stream processor was created *

* * @param creationTimestamp

* Date and time the stream processor was created *

*/ public void setCreationTimestamp(java.util.Date creationTimestamp) { this.creationTimestamp = creationTimestamp; } /** *

* Date and time the stream processor was created *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param creationTimestamp

* Date and time the stream processor was created *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeStreamProcessorResult withCreationTimestamp(java.util.Date creationTimestamp) { this.creationTimestamp = creationTimestamp; return this; } /** *

* The time, in Unix format, the stream processor was last updated. For * example, when the stream processor moves from a running state to a failed * state, or when the user starts or stops the stream processor. *

* * @return

* The time, in Unix format, the stream processor was last updated. * For example, when the stream processor moves from a running state * to a failed state, or when the user starts or stops the stream * processor. *

*/ public java.util.Date getLastUpdateTimestamp() { return lastUpdateTimestamp; } /** *

* The time, in Unix format, the stream processor was last updated. For * example, when the stream processor moves from a running state to a failed * state, or when the user starts or stops the stream processor. *

* * @param lastUpdateTimestamp

* The time, in Unix format, the stream processor was last * updated. For example, when the stream processor moves from a * running state to a failed state, or when the user starts or * stops the stream processor. *

*/ public void setLastUpdateTimestamp(java.util.Date lastUpdateTimestamp) { this.lastUpdateTimestamp = lastUpdateTimestamp; } /** *

* The time, in Unix format, the stream processor was last updated. For * example, when the stream processor moves from a running state to a failed * state, or when the user starts or stops the stream processor. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param lastUpdateTimestamp

* The time, in Unix format, the stream processor was last * updated. For example, when the stream processor moves from a * running state to a failed state, or when the user starts or * stops the stream processor. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeStreamProcessorResult withLastUpdateTimestamp(java.util.Date lastUpdateTimestamp) { this.lastUpdateTimestamp = lastUpdateTimestamp; return this; } /** *

* Kinesis video stream that provides the source streaming video. *

* * @return

* Kinesis video stream that provides the source streaming video. *

*/ public StreamProcessorInput getInput() { return input; } /** *

* Kinesis video stream that provides the source streaming video. *

* * @param input

* Kinesis video stream that provides the source streaming video. *

*/ public void setInput(StreamProcessorInput input) { this.input = input; } /** *

* Kinesis video stream that provides the source streaming video. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param input

* Kinesis video stream that provides the source streaming video. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeStreamProcessorResult withInput(StreamProcessorInput input) { this.input = input; return this; } /** *

* Kinesis data stream to which Amazon Rekognition Video puts the analysis * results. *

* * @return

* Kinesis data stream to which Amazon Rekognition Video puts the * analysis results. *

*/ public StreamProcessorOutput getOutput() { return output; } /** *

* Kinesis data stream to which Amazon Rekognition Video puts the analysis * results. *

* * @param output

* Kinesis data stream to which Amazon Rekognition Video puts the * analysis results. *

*/ public void setOutput(StreamProcessorOutput output) { this.output = output; } /** *

* Kinesis data stream to which Amazon Rekognition Video puts the analysis * results. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param output

* Kinesis data stream to which Amazon Rekognition Video puts the * analysis results. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeStreamProcessorResult withOutput(StreamProcessorOutput output) { this.output = output; return this; } /** *

* ARN of the IAM role that allows access to the stream processor. *

*

* Constraints:
* Pattern: arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+
* * @return

* ARN of the IAM role that allows access to the stream processor. *

*/ public String getRoleArn() { return roleArn; } /** *

* ARN of the IAM role that allows access to the stream processor. *

*

* Constraints:
* Pattern: arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+
* * @param roleArn

* ARN of the IAM role that allows access to the stream * processor. *

*/ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* ARN of the IAM role that allows access to the stream processor. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Pattern: arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+
* * @param roleArn

* ARN of the IAM role that allows access to the stream * processor. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeStreamProcessorResult withRoleArn(String roleArn) { this.roleArn = roleArn; return this; } /** *

* Input parameters used in a streaming video analyzed by a stream * processor. You can use FaceSearch to recognize faces in a * streaming video, or you can use ConnectedHome to detect * labels. *

* * @return

* Input parameters used in a streaming video analyzed by a stream * processor. You can use FaceSearch to recognize faces * in a streaming video, or you can use ConnectedHome * to detect labels. *

*/ public StreamProcessorSettings getSettings() { return settings; } /** *

* Input parameters used in a streaming video analyzed by a stream * processor. You can use FaceSearch to recognize faces in a * streaming video, or you can use ConnectedHome to detect * labels. *

* * @param settings

* Input parameters used in a streaming video analyzed by a * stream processor. You can use FaceSearch to * recognize faces in a streaming video, or you can use * ConnectedHome to detect labels. *

*/ public void setSettings(StreamProcessorSettings settings) { this.settings = settings; } /** *

* Input parameters used in a streaming video analyzed by a stream * processor. You can use FaceSearch to recognize faces in a * streaming video, or you can use ConnectedHome to detect * labels. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param settings

* Input parameters used in a streaming video analyzed by a * stream processor. You can use FaceSearch to * recognize faces in a streaming video, or you can use * ConnectedHome to detect labels. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeStreamProcessorResult withSettings(StreamProcessorSettings settings) { this.settings = settings; return this; } /** *

* The Amazon Simple Notification Service topic to which Amazon Rekognition * publishes the object detection results and completion status of a video * analysis operation. *

*

* Amazon Rekognition publishes a notification the first time an object of * interest or a person is detected in the video stream. For example, if * Amazon Rekognition detects a person at second 2, a pet at second 4, and a * person again at second 5, Amazon Rekognition sends 2 object class * detected notifications, one for a person at second 2 and one for a pet at * second 4. *

*

* Amazon Rekognition also publishes an an end-of-session notification with * a summary when the stream processing session is complete. *

* * @return

* The Amazon Simple Notification Service topic to which Amazon * Rekognition publishes the object detection results and completion * status of a video analysis operation. *

*

* Amazon Rekognition publishes a notification the first time an * object of interest or a person is detected in the video stream. * For example, if Amazon Rekognition detects a person at second 2, * a pet at second 4, and a person again at second 5, Amazon * Rekognition sends 2 object class detected notifications, one for * a person at second 2 and one for a pet at second 4. *

*

* Amazon Rekognition also publishes an an end-of-session * notification with a summary when the stream processing session is * complete. *

*/ public StreamProcessorNotificationChannel getNotificationChannel() { return notificationChannel; } /** *

* The Amazon Simple Notification Service topic to which Amazon Rekognition * publishes the object detection results and completion status of a video * analysis operation. *

*

* Amazon Rekognition publishes a notification the first time an object of * interest or a person is detected in the video stream. For example, if * Amazon Rekognition detects a person at second 2, a pet at second 4, and a * person again at second 5, Amazon Rekognition sends 2 object class * detected notifications, one for a person at second 2 and one for a pet at * second 4. *

*

* Amazon Rekognition also publishes an an end-of-session notification with * a summary when the stream processing session is complete. *

* * @param notificationChannel

* The Amazon Simple Notification Service topic to which Amazon * Rekognition publishes the object detection results and * completion status of a video analysis operation. *

*

* Amazon Rekognition publishes a notification the first time an * object of interest or a person is detected in the video * stream. For example, if Amazon Rekognition detects a person at * second 2, a pet at second 4, and a person again at second 5, * Amazon Rekognition sends 2 object class detected * notifications, one for a person at second 2 and one for a pet * at second 4. *

*

* Amazon Rekognition also publishes an an end-of-session * notification with a summary when the stream processing session * is complete. *

*/ public void setNotificationChannel(StreamProcessorNotificationChannel notificationChannel) { this.notificationChannel = notificationChannel; } /** *

* The Amazon Simple Notification Service topic to which Amazon Rekognition * publishes the object detection results and completion status of a video * analysis operation. *

*

* Amazon Rekognition publishes a notification the first time an object of * interest or a person is detected in the video stream. For example, if * Amazon Rekognition detects a person at second 2, a pet at second 4, and a * person again at second 5, Amazon Rekognition sends 2 object class * detected notifications, one for a person at second 2 and one for a pet at * second 4. *

*

* Amazon Rekognition also publishes an an end-of-session notification with * a summary when the stream processing session is complete. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param notificationChannel

* The Amazon Simple Notification Service topic to which Amazon * Rekognition publishes the object detection results and * completion status of a video analysis operation. *

*

* Amazon Rekognition publishes a notification the first time an * object of interest or a person is detected in the video * stream. For example, if Amazon Rekognition detects a person at * second 2, a pet at second 4, and a person again at second 5, * Amazon Rekognition sends 2 object class detected * notifications, one for a person at second 2 and one for a pet * at second 4. *

*

* Amazon Rekognition also publishes an an end-of-session * notification with a summary when the stream processing session * is complete. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeStreamProcessorResult withNotificationChannel( StreamProcessorNotificationChannel notificationChannel) { this.notificationChannel = notificationChannel; return this; } /** *

* The identifier for your AWS Key Management Service key (AWS KMS key). * This is an optional parameter for label detection stream processors. *

*

* Constraints:
* Length: 1 - 2048
* Pattern: ^[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,2048}$
* * @return

* The identifier for your AWS Key Management Service key (AWS KMS * key). This is an optional parameter for label detection stream * processors. *

*/ public String getKmsKeyId() { return kmsKeyId; } /** *

* The identifier for your AWS Key Management Service key (AWS KMS key). * This is an optional parameter for label detection stream processors. *

*

* Constraints:
* Length: 1 - 2048
* Pattern: ^[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,2048}$
* * @param kmsKeyId

* The identifier for your AWS Key Management Service key (AWS * KMS key). This is an optional parameter for label detection * stream processors. *

*/ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** *

* The identifier for your AWS Key Management Service key (AWS KMS key). * This is an optional parameter for label detection stream processors. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Length: 1 - 2048
* Pattern: ^[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,2048}$
* * @param kmsKeyId

* The identifier for your AWS Key Management Service key (AWS * KMS key). This is an optional parameter for label detection * stream processors. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeStreamProcessorResult withKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } /** *

* Specifies locations in the frames where Amazon Rekognition checks for * objects or people. This is an optional parameter for label detection * stream processors. *

* * @return

* Specifies locations in the frames where Amazon Rekognition checks * for objects or people. This is an optional parameter for label * detection stream processors. *

*/ public java.util.List getRegionsOfInterest() { return regionsOfInterest; } /** *

* Specifies locations in the frames where Amazon Rekognition checks for * objects or people. This is an optional parameter for label detection * stream processors. *

* * @param regionsOfInterest

* Specifies locations in the frames where Amazon Rekognition * checks for objects or people. This is an optional parameter * for label detection stream processors. *

*/ public void setRegionsOfInterest(java.util.Collection regionsOfInterest) { if (regionsOfInterest == null) { this.regionsOfInterest = null; return; } this.regionsOfInterest = new java.util.ArrayList(regionsOfInterest); } /** *

* Specifies locations in the frames where Amazon Rekognition checks for * objects or people. This is an optional parameter for label detection * stream processors. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param regionsOfInterest

* Specifies locations in the frames where Amazon Rekognition * checks for objects or people. This is an optional parameter * for label detection stream processors. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeStreamProcessorResult withRegionsOfInterest( RegionOfInterest... regionsOfInterest) { if (getRegionsOfInterest() == null) { this.regionsOfInterest = new java.util.ArrayList( regionsOfInterest.length); } for (RegionOfInterest value : regionsOfInterest) { this.regionsOfInterest.add(value); } return this; } /** *

* Specifies locations in the frames where Amazon Rekognition checks for * objects or people. This is an optional parameter for label detection * stream processors. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param regionsOfInterest

* Specifies locations in the frames where Amazon Rekognition * checks for objects or people. This is an optional parameter * for label detection stream processors. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeStreamProcessorResult withRegionsOfInterest( java.util.Collection regionsOfInterest) { setRegionsOfInterest(regionsOfInterest); return this; } /** *

* Shows whether you are sharing data with Rekognition to improve model * performance. You can choose this option at the account level or on a * per-stream basis. Note that if you opt out at the account level this * setting is ignored on individual streams. *

* * @return

* Shows whether you are sharing data with Rekognition to improve * model performance. You can choose this option at the account * level or on a per-stream basis. Note that if you opt out at the * account level this setting is ignored on individual streams. *

*/ public StreamProcessorDataSharingPreference getDataSharingPreference() { return dataSharingPreference; } /** *

* Shows whether you are sharing data with Rekognition to improve model * performance. You can choose this option at the account level or on a * per-stream basis. Note that if you opt out at the account level this * setting is ignored on individual streams. *

* * @param dataSharingPreference

* Shows whether you are sharing data with Rekognition to improve * model performance. You can choose this option at the account * level or on a per-stream basis. Note that if you opt out at * the account level this setting is ignored on individual * streams. *

*/ public void setDataSharingPreference(StreamProcessorDataSharingPreference dataSharingPreference) { this.dataSharingPreference = dataSharingPreference; } /** *

* Shows whether you are sharing data with Rekognition to improve model * performance. You can choose this option at the account level or on a * per-stream basis. Note that if you opt out at the account level this * setting is ignored on individual streams. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param dataSharingPreference

* Shows whether you are sharing data with Rekognition to improve * model performance. You can choose this option at the account * level or on a per-stream basis. Note that if you opt out at * the account level this setting is ignored on individual * streams. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeStreamProcessorResult withDataSharingPreference( StreamProcessorDataSharingPreference dataSharingPreference) { this.dataSharingPreference = dataSharingPreference; return this; } /** * 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 (getName() != null) sb.append("Name: " + getName() + ","); if (getStreamProcessorArn() != null) sb.append("StreamProcessorArn: " + getStreamProcessorArn() + ","); if (getStatus() != null) sb.append("Status: " + getStatus() + ","); if (getStatusMessage() != null) sb.append("StatusMessage: " + getStatusMessage() + ","); if (getCreationTimestamp() != null) sb.append("CreationTimestamp: " + getCreationTimestamp() + ","); if (getLastUpdateTimestamp() != null) sb.append("LastUpdateTimestamp: " + getLastUpdateTimestamp() + ","); if (getInput() != null) sb.append("Input: " + getInput() + ","); if (getOutput() != null) sb.append("Output: " + getOutput() + ","); if (getRoleArn() != null) sb.append("RoleArn: " + getRoleArn() + ","); if (getSettings() != null) sb.append("Settings: " + getSettings() + ","); if (getNotificationChannel() != null) sb.append("NotificationChannel: " + getNotificationChannel() + ","); if (getKmsKeyId() != null) sb.append("KmsKeyId: " + getKmsKeyId() + ","); if (getRegionsOfInterest() != null) sb.append("RegionsOfInterest: " + getRegionsOfInterest() + ","); if (getDataSharingPreference() != null) sb.append("DataSharingPreference: " + getDataSharingPreference()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getStreamProcessorArn() == null) ? 0 : getStreamProcessorArn().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getCreationTimestamp() == null) ? 0 : getCreationTimestamp().hashCode()); hashCode = prime * hashCode + ((getLastUpdateTimestamp() == null) ? 0 : getLastUpdateTimestamp().hashCode()); hashCode = prime * hashCode + ((getInput() == null) ? 0 : getInput().hashCode()); hashCode = prime * hashCode + ((getOutput() == null) ? 0 : getOutput().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getSettings() == null) ? 0 : getSettings().hashCode()); hashCode = prime * hashCode + ((getNotificationChannel() == null) ? 0 : getNotificationChannel().hashCode()); hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getRegionsOfInterest() == null) ? 0 : getRegionsOfInterest().hashCode()); hashCode = prime * hashCode + ((getDataSharingPreference() == null) ? 0 : getDataSharingPreference().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeStreamProcessorResult == false) return false; DescribeStreamProcessorResult other = (DescribeStreamProcessorResult) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getStreamProcessorArn() == null ^ this.getStreamProcessorArn() == null) return false; if (other.getStreamProcessorArn() != null && other.getStreamProcessorArn().equals(this.getStreamProcessorArn()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStatusMessage() == null ^ this.getStatusMessage() == null) return false; if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false) return false; if (other.getCreationTimestamp() == null ^ this.getCreationTimestamp() == null) return false; if (other.getCreationTimestamp() != null && other.getCreationTimestamp().equals(this.getCreationTimestamp()) == false) return false; if (other.getLastUpdateTimestamp() == null ^ this.getLastUpdateTimestamp() == null) return false; if (other.getLastUpdateTimestamp() != null && other.getLastUpdateTimestamp().equals(this.getLastUpdateTimestamp()) == false) return false; 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.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == 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.getNotificationChannel() == null ^ this.getNotificationChannel() == null) return false; if (other.getNotificationChannel() != null && other.getNotificationChannel().equals(this.getNotificationChannel()) == false) return false; if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null) return false; if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false) return false; if (other.getRegionsOfInterest() == null ^ this.getRegionsOfInterest() == null) return false; if (other.getRegionsOfInterest() != null && other.getRegionsOfInterest().equals(this.getRegionsOfInterest()) == false) return false; if (other.getDataSharingPreference() == null ^ this.getDataSharingPreference() == null) return false; if (other.getDataSharingPreference() != null && other.getDataSharingPreference().equals(this.getDataSharingPreference()) == false) return false; return true; } }