/* * Copyright 2018-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; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateStreamProcessorRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Name of the stream processor that you want to update. *
*/ private String name; /** ** The stream processor settings that you want to update. Label detection settings can be updated to detect * different labels with a different minimum confidence. *
*/ private StreamProcessorSettingsForUpdate settingsForUpdate; /** ** 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* 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 dataSharingPreferenceForUpdate; /** ** A list of parameters you want to delete from the stream processor. *
*/ private java.util.List* Name of the stream processor that you want to update. *
* * @param name * Name of the stream processor that you want to update. */ public void setName(String name) { this.name = name; } /** ** Name of the stream processor that you want to update. *
* * @return Name of the stream processor that you want to update. */ public String getName() { return this.name; } /** ** Name of the stream processor that you want to update. *
* * @param name * Name of the stream processor that you want to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateStreamProcessorRequest withName(String name) { setName(name); return this; } /** ** The stream processor settings that you want to update. Label detection settings can be updated to detect * different labels with a different minimum confidence. *
* * @param settingsForUpdate * The stream processor settings that you want to update. Label detection settings can be updated to detect * different labels with a different minimum confidence. */ public void setSettingsForUpdate(StreamProcessorSettingsForUpdate settingsForUpdate) { this.settingsForUpdate = settingsForUpdate; } /** ** The stream processor settings that you want to update. Label detection settings can be updated to detect * different labels with a different minimum confidence. *
* * @return The stream processor settings that you want to update. Label detection settings can be updated to detect * different labels with a different minimum confidence. */ public StreamProcessorSettingsForUpdate getSettingsForUpdate() { return this.settingsForUpdate; } /** ** The stream processor settings that you want to update. Label detection settings can be updated to detect * different labels with a different minimum confidence. *
* * @param settingsForUpdate * The stream processor settings that you want to update. Label detection settings can be updated to detect * different labels with a different minimum confidence. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateStreamProcessorRequest withSettingsForUpdate(StreamProcessorSettingsForUpdate settingsForUpdate) { setSettingsForUpdate(settingsForUpdate); 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* Specifies locations in the frames where Amazon Rekognition checks for objects or people. This is an optional * parameter for label detection stream processors. *
* * @param regionsOfInterestForUpdate * 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 setRegionsOfInterestForUpdate(java.util.Collection* Specifies locations in the frames where Amazon Rekognition checks for objects or people. This is an optional * parameter for label detection stream processors. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRegionsOfInterestForUpdate(java.util.Collection)} or * {@link #withRegionsOfInterestForUpdate(java.util.Collection)} if you want to override the existing values. *
* * @param regionsOfInterestForUpdate * Specifies locations in the frames where Amazon Rekognition checks for objects or people. This is an * optional parameter for label detection stream processors. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateStreamProcessorRequest withRegionsOfInterestForUpdate(RegionOfInterest... regionsOfInterestForUpdate) { if (this.regionsOfInterestForUpdate == null) { setRegionsOfInterestForUpdate(new java.util.ArrayList* Specifies locations in the frames where Amazon Rekognition checks for objects or people. This is an optional * parameter for label detection stream processors. *
* * @param regionsOfInterestForUpdate * Specifies locations in the frames where Amazon Rekognition checks for objects or people. This is an * optional parameter for label detection stream processors. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateStreamProcessorRequest withRegionsOfInterestForUpdate(java.util.Collection* 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 dataSharingPreferenceForUpdate * 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 setDataSharingPreferenceForUpdate(StreamProcessorDataSharingPreference dataSharingPreferenceForUpdate) { this.dataSharingPreferenceForUpdate = dataSharingPreferenceForUpdate; } /** ** 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 getDataSharingPreferenceForUpdate() { return this.dataSharingPreferenceForUpdate; } /** ** 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 dataSharingPreferenceForUpdate * 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 Returns a reference to this object so that method calls can be chained together. */ public UpdateStreamProcessorRequest withDataSharingPreferenceForUpdate(StreamProcessorDataSharingPreference dataSharingPreferenceForUpdate) { setDataSharingPreferenceForUpdate(dataSharingPreferenceForUpdate); return this; } /** ** A list of parameters you want to delete from the stream processor. *
* * @return A list of parameters you want to delete from the stream processor. * @see StreamProcessorParameterToDelete */ public java.util.List* A list of parameters you want to delete from the stream processor. *
* * @param parametersToDelete * A list of parameters you want to delete from the stream processor. * @see StreamProcessorParameterToDelete */ public void setParametersToDelete(java.util.Collection* A list of parameters you want to delete from the stream processor. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setParametersToDelete(java.util.Collection)} or {@link #withParametersToDelete(java.util.Collection)} if * you want to override the existing values. *
* * @param parametersToDelete * A list of parameters you want to delete from the stream processor. * @return Returns a reference to this object so that method calls can be chained together. * @see StreamProcessorParameterToDelete */ public UpdateStreamProcessorRequest withParametersToDelete(String... parametersToDelete) { if (this.parametersToDelete == null) { setParametersToDelete(new java.util.ArrayList* A list of parameters you want to delete from the stream processor. *
* * @param parametersToDelete * A list of parameters you want to delete from the stream processor. * @return Returns a reference to this object so that method calls can be chained together. * @see StreamProcessorParameterToDelete */ public UpdateStreamProcessorRequest withParametersToDelete(java.util.Collection* A list of parameters you want to delete from the stream processor. *
* * @param parametersToDelete * A list of parameters you want to delete from the stream processor. * @return Returns a reference to this object so that method calls can be chained together. * @see StreamProcessorParameterToDelete */ public UpdateStreamProcessorRequest withParametersToDelete(StreamProcessorParameterToDelete... parametersToDelete) { java.util.ArrayList