Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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.machinelearning.model;
 
 
Container for the parameters to the UpdateBatchPrediction operation.

Updates the BatchPredictionName of a BatchPrediction .

You can use the GetBatchPrediction operation to view the contents of the updated data element.

 
 public class UpdateBatchPredictionRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
The ID assigned to the BatchPrediction during creation.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

 
     private String batchPredictionId;

    
A new user-supplied name or description of the BatchPrediction.

Constraints:
Length: 0 - 1024
Pattern: .*\S.*|^$

 
     private String batchPredictionName;

    
The ID assigned to the BatchPrediction during creation.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

Returns:
The ID assigned to the BatchPrediction during creation.
 
     public String getBatchPredictionId() {
         return ;
     }
    
    
The ID assigned to the BatchPrediction during creation.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

Parameters:
batchPredictionId The ID assigned to the BatchPrediction during creation.
 
     public void setBatchPredictionId(String batchPredictionId) {
         this. = batchPredictionId;
     }
    
    
The ID assigned to the BatchPrediction during creation.

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

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

Parameters:
batchPredictionId The ID assigned to the BatchPrediction during creation.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public UpdateBatchPredictionRequest withBatchPredictionId(String batchPredictionId) {
         this. = batchPredictionId;
         return this;
     }

    
A new user-supplied name or description of the BatchPrediction.

Constraints:
Length: 0 - 1024
Pattern: .*\S.*|^$

Returns:
A new user-supplied name or description of the BatchPrediction.
    public String getBatchPredictionName() {
        return ;
    }
    
    
A new user-supplied name or description of the BatchPrediction.

Constraints:
Length: 0 - 1024
Pattern: .*\S.*|^$

Parameters:
batchPredictionName A new user-supplied name or description of the BatchPrediction.
    public void setBatchPredictionName(String batchPredictionName) {
        this. = batchPredictionName;
    }
    
    
A new user-supplied name or description of the BatchPrediction.

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

Constraints:
Length: 0 - 1024
Pattern: .*\S.*|^$

Parameters:
batchPredictionName A new user-supplied name or description of the BatchPrediction.
Returns:
A reference to this updated object so that method calls can be chained together.
    public UpdateBatchPredictionRequest withBatchPredictionName(String batchPredictionName) {
        this. = batchPredictionName;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getBatchPredictionId() != nullsb.append("BatchPredictionId: " + getBatchPredictionId() + ",");
        if (getBatchPredictionName() != nullsb.append("BatchPredictionName: " + getBatchPredictionName() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getBatchPredictionId() == null) ? 0 : getBatchPredictionId().hashCode()); 
        hashCode = prime * hashCode + ((getBatchPredictionName() == null) ? 0 : getBatchPredictionName().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof UpdateBatchPredictionRequest == falsereturn false;
        
        if (other.getBatchPredictionId() == null ^ this.getBatchPredictionId() == nullreturn false;
        if (other.getBatchPredictionId() != null && other.getBatchPredictionId().equals(this.getBatchPredictionId()) == falsereturn false
        if (other.getBatchPredictionName() == null ^ this.getBatchPredictionName() == nullreturn false;
        if (other.getBatchPredictionName() != null && other.getBatchPredictionName().equals(this.getBatchPredictionName()) == falsereturn false
        return true;
    }
    
    @Override
        
            return (UpdateBatchPredictionRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X