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;
 

Describes the real-time endpoint information for an MLModel .

 
 public class RealtimeEndpointInfo implements SerializableCloneable {

    
The maximum processing rate for the real-time endpoint for MLModel, measured in incoming requests per second.
 
     private Integer peakRequestsPerSecond;

    
The time that the request to create the real-time endpoint for the MLModel was received. The time is expressed in epoch time.
 
     private java.util.Date createdAt;

    
The URI that specifies where to send real-time prediction requests for the MLModel. <note><title>Note</title>

The application must wait until the real-time endpoint is ready before using this URI. </note>

Constraints:
Length: 0 - 2048
Pattern: https://[a-zA-Z0-9-.]*\.amazon(aws)?\.com[/]?

 
     private String endpointUrl;

    
The current status of the real-time endpoint for the MLModel. This element can have one of the following values:
  • NONE - Endpoint does not exist or was previously deleted.
  • READY - Endpoint is ready to be used for real-time predictions.
  • UPDATING - Updating/creating the endpoint.

Constraints:
Allowed Values: NONE, READY, UPDATING, FAILED

 
     private String endpointStatus;

    
The maximum processing rate for the real-time endpoint for MLModel, measured in incoming requests per second.

Returns:
The maximum processing rate for the real-time endpoint for MLModel, measured in incoming requests per second.
 
     public Integer getPeakRequestsPerSecond() {
         return ;
     }
    
    
The maximum processing rate for the real-time endpoint for MLModel, measured in incoming requests per second.

Parameters:
peakRequestsPerSecond The maximum processing rate for the real-time endpoint for MLModel, measured in incoming requests per second.
 
     public void setPeakRequestsPerSecond(Integer peakRequestsPerSecond) {
         this. = peakRequestsPerSecond;
     }
    
    
The maximum processing rate for the real-time endpoint for MLModel, measured in incoming requests per second.

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

Parameters:
peakRequestsPerSecond The maximum processing rate for the real-time endpoint for MLModel, measured in incoming requests per second.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public RealtimeEndpointInfo withPeakRequestsPerSecond(Integer peakRequestsPerSecond) {
        this. = peakRequestsPerSecond;
        return this;
    }

    
The time that the request to create the real-time endpoint for the MLModel was received. The time is expressed in epoch time.

Returns:
The time that the request to create the real-time endpoint for the MLModel was received. The time is expressed in epoch time.
    public java.util.Date getCreatedAt() {
        return ;
    }
    
    
The time that the request to create the real-time endpoint for the MLModel was received. The time is expressed in epoch time.

Parameters:
createdAt The time that the request to create the real-time endpoint for the MLModel was received. The time is expressed in epoch time.
    public void setCreatedAt(java.util.Date createdAt) {
        this. = createdAt;
    }
    
    
The time that the request to create the real-time endpoint for the MLModel was received. The time is expressed in epoch time.

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

Parameters:
createdAt The time that the request to create the real-time endpoint for the MLModel was received. The time is expressed in epoch time.
Returns:
A reference to this updated object so that method calls can be chained together.
    public RealtimeEndpointInfo withCreatedAt(java.util.Date createdAt) {
        this. = createdAt;
        return this;
    }

    
The URI that specifies where to send real-time prediction requests for the MLModel. <note><title>Note</title>

The application must wait until the real-time endpoint is ready before using this URI. </note>

Constraints:
Length: 0 - 2048
Pattern: https://[a-zA-Z0-9-.]*\.amazon(aws)?\.com[/]?

Returns:
The URI that specifies where to send real-time prediction requests for the MLModel. <note><title>Note</title>

The application must wait until the real-time endpoint is ready before using this URI. </note>

    public String getEndpointUrl() {
        return ;
    }
    
    
The URI that specifies where to send real-time prediction requests for the MLModel. <note><title>Note</title>

The application must wait until the real-time endpoint is ready before using this URI. </note>

Constraints:
Length: 0 - 2048
Pattern: https://[a-zA-Z0-9-.]*\.amazon(aws)?\.com[/]?

Parameters:
endpointUrl The URI that specifies where to send real-time prediction requests for the MLModel. <note><title>Note</title>

The application must wait until the real-time endpoint is ready before using this URI. </note>

    public void setEndpointUrl(String endpointUrl) {
        this. = endpointUrl;
    }
    
    
The URI that specifies where to send real-time prediction requests for the MLModel. <note><title>Note</title>

The application must wait until the real-time endpoint is ready before using this URI. </note>

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

Constraints:
Length: 0 - 2048
Pattern: https://[a-zA-Z0-9-.]*\.amazon(aws)?\.com[/]?

Parameters:
endpointUrl The URI that specifies where to send real-time prediction requests for the MLModel. <note><title>Note</title>

The application must wait until the real-time endpoint is ready before using this URI. </note>

Returns:
A reference to this updated object so that method calls can be chained together.
    public RealtimeEndpointInfo withEndpointUrl(String endpointUrl) {
        this. = endpointUrl;
        return this;
    }

    
The current status of the real-time endpoint for the MLModel. This element can have one of the following values:
  • NONE - Endpoint does not exist or was previously deleted.
  • READY - Endpoint is ready to be used for real-time predictions.
  • UPDATING - Updating/creating the endpoint.

Constraints:
Allowed Values: NONE, READY, UPDATING, FAILED

Returns:
The current status of the real-time endpoint for the MLModel. This element can have one of the following values:
  • NONE - Endpoint does not exist or was previously deleted.
  • READY - Endpoint is ready to be used for real-time predictions.
  • UPDATING - Updating/creating the endpoint.
See also:
RealtimeEndpointStatus
    public String getEndpointStatus() {
        return ;
    }
    
    
The current status of the real-time endpoint for the MLModel. This element can have one of the following values:
  • NONE - Endpoint does not exist or was previously deleted.
  • READY - Endpoint is ready to be used for real-time predictions.
  • UPDATING - Updating/creating the endpoint.

Constraints:
Allowed Values: NONE, READY, UPDATING, FAILED

Parameters:
endpointStatus The current status of the real-time endpoint for the MLModel. This element can have one of the following values:
  • NONE - Endpoint does not exist or was previously deleted.
  • READY - Endpoint is ready to be used for real-time predictions.
  • UPDATING - Updating/creating the endpoint.
See also:
RealtimeEndpointStatus
    public void setEndpointStatus(String endpointStatus) {
        this. = endpointStatus;
    }
    
    
The current status of the real-time endpoint for the MLModel. This element can have one of the following values:
  • NONE - Endpoint does not exist or was previously deleted.
  • READY - Endpoint is ready to be used for real-time predictions.
  • UPDATING - Updating/creating the endpoint.

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

Constraints:
Allowed Values: NONE, READY, UPDATING, FAILED

Parameters:
endpointStatus The current status of the real-time endpoint for the MLModel. This element can have one of the following values:
  • NONE - Endpoint does not exist or was previously deleted.
  • READY - Endpoint is ready to be used for real-time predictions.
  • UPDATING - Updating/creating the endpoint.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
RealtimeEndpointStatus
    public RealtimeEndpointInfo withEndpointStatus(String endpointStatus) {
        this. = endpointStatus;
        return this;
    }

    
The current status of the real-time endpoint for the MLModel. This element can have one of the following values:
  • NONE - Endpoint does not exist or was previously deleted.
  • READY - Endpoint is ready to be used for real-time predictions.
  • UPDATING - Updating/creating the endpoint.

Constraints:
Allowed Values: NONE, READY, UPDATING, FAILED

Parameters:
endpointStatus The current status of the real-time endpoint for the MLModel. This element can have one of the following values:
  • NONE - Endpoint does not exist or was previously deleted.
  • READY - Endpoint is ready to be used for real-time predictions.
  • UPDATING - Updating/creating the endpoint.
See also:
RealtimeEndpointStatus
    public void setEndpointStatus(RealtimeEndpointStatus endpointStatus) {
        this. = endpointStatus.toString();
    }
    
    
The current status of the real-time endpoint for the MLModel. This element can have one of the following values:
  • NONE - Endpoint does not exist or was previously deleted.
  • READY - Endpoint is ready to be used for real-time predictions.
  • UPDATING - Updating/creating the endpoint.

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

Constraints:
Allowed Values: NONE, READY, UPDATING, FAILED

Parameters:
endpointStatus The current status of the real-time endpoint for the MLModel. This element can have one of the following values:
  • NONE - Endpoint does not exist or was previously deleted.
  • READY - Endpoint is ready to be used for real-time predictions.
  • UPDATING - Updating/creating the endpoint.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
RealtimeEndpointStatus
        this. = endpointStatus.toString();
        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 (getPeakRequestsPerSecond() != nullsb.append("PeakRequestsPerSecond: " + getPeakRequestsPerSecond() + ",");
        if (getCreatedAt() != nullsb.append("CreatedAt: " + getCreatedAt() + ",");
        if (getEndpointUrl() != nullsb.append("EndpointUrl: " + getEndpointUrl() + ",");
        if (getEndpointStatus() != nullsb.append("EndpointStatus: " + getEndpointStatus() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getPeakRequestsPerSecond() == null) ? 0 : getPeakRequestsPerSecond().hashCode()); 
        hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); 
        hashCode = prime * hashCode + ((getEndpointUrl() == null) ? 0 : getEndpointUrl().hashCode()); 
        hashCode = prime * hashCode + ((getEndpointStatus() == null) ? 0 : getEndpointStatus().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof RealtimeEndpointInfo == falsereturn false;
        RealtimeEndpointInfo other = (RealtimeEndpointInfo)obj;
        
        if (other.getPeakRequestsPerSecond() == null ^ this.getPeakRequestsPerSecond() == nullreturn false;
        if (other.getPeakRequestsPerSecond() != null && other.getPeakRequestsPerSecond().equals(this.getPeakRequestsPerSecond()) == falsereturn false
        if (other.getCreatedAt() == null ^ this.getCreatedAt() == nullreturn false;
        if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == falsereturn false
        if (other.getEndpointUrl() == null ^ this.getEndpointUrl() == nullreturn false;
        if (other.getEndpointUrl() != null && other.getEndpointUrl().equals(this.getEndpointUrl()) == falsereturn false
        if (other.getEndpointStatus() == null ^ this.getEndpointStatus() == nullreturn false;
        if (other.getEndpointStatus() != null && other.getEndpointStatus().equals(this.getEndpointStatus()) == falsereturn false
        return true;
    }
    
    @Override
    public RealtimeEndpointInfo clone() {
        try {
            return (RealtimeEndpointInfosuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X