Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010 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.autoscaling.model;

The Activity data type.

 
 public class Activity {

    
Specifies the ID of the activity.

Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

 
     private String activityId;

    
Contains a friendly, more verbose description of the scaling activity.

Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

 
     private String description;

    
Contains the reason the activity was begun.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

 
     private String cause;

    
Provides the start time of this activity.
 
     private java.util.Date startTime;

    
Provides the end time of this activity.
 
     private java.util.Date endTime;

    
Contains the current status of the activity.

Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

 
     private String statusCode;

    
Contains a friendly, more verbose description of the activity status.

Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

 
     private String statusMessage;

    
Specifies a value between 0 and 100 that indicates the progress of the activity.
 
     private Integer progress;

    
Specifies the ID of the activity.

Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Specifies the ID of the activity.
 
     public String getActivityId() {
         return ;
     }
    
    
Specifies the ID of the activity.

Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
activityId Specifies the ID of the activity.
    public void setActivityId(String activityId) {
        this. = activityId;
    }
    
    
Specifies the ID of the activity.

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

Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
activityId Specifies the ID of the activity.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Activity withActivityId(String activityId) {
        this. = activityId;
        return this;
    }
    
    
    
Contains a friendly, more verbose description of the scaling activity.

Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Contains a friendly, more verbose description of the scaling activity.
    public String getDescription() {
        return ;
    }
    
    
Contains a friendly, more verbose description of the scaling activity.

Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
description Contains a friendly, more verbose description of the scaling activity.
    public void setDescription(String description) {
        this. = description;
    }
    
    
Contains a friendly, more verbose description of the scaling activity.

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

Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
description Contains a friendly, more verbose description of the scaling activity.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Activity withDescription(String description) {
        this. = description;
        return this;
    }
    
    
    
Contains the reason the activity was begun.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Contains the reason the activity was begun.
    public String getCause() {
        return ;
    }
    
    
Contains the reason the activity was begun.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
cause Contains the reason the activity was begun.
    public void setCause(String cause) {
        this. = cause;
    }
    
    
Contains the reason the activity was begun.

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
cause Contains the reason the activity was begun.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Activity withCause(String cause) {
        this. = cause;
        return this;
    }
    
    
    
Provides the start time of this activity.

Returns:
Provides the start time of this activity.
    public java.util.Date getStartTime() {
        return ;
    }
    
    
Provides the start time of this activity.

Parameters:
startTime Provides the start time of this activity.
    public void setStartTime(java.util.Date startTime) {
        this. = startTime;
    }
    
    
Provides the start time of this activity.

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

Parameters:
startTime Provides the start time of this activity.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Activity withStartTime(java.util.Date startTime) {
        this. = startTime;
        return this;
    }
    
    
    
Provides the end time of this activity.

Returns:
Provides the end time of this activity.
    public java.util.Date getEndTime() {
        return ;
    }
    
    
Provides the end time of this activity.

Parameters:
endTime Provides the end time of this activity.
    public void setEndTime(java.util.Date endTime) {
        this. = endTime;
    }
    
    
Provides the end time of this activity.

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

Parameters:
endTime Provides the end time of this activity.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Activity withEndTime(java.util.Date endTime) {
        this. = endTime;
        return this;
    }
    
    
    
Contains the current status of the activity.

Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Contains the current status of the activity.
    public String getStatusCode() {
        return ;
    }
    
    
Contains the current status of the activity.

Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
statusCode Contains the current status of the activity.
    public void setStatusCode(String statusCode) {
        this. = statusCode;
    }
    
    
Contains the current status of the activity.

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

Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
statusCode Contains the current status of the activity.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Activity withStatusCode(String statusCode) {
        this. = statusCode;
        return this;
    }
    
    
    
Contains a friendly, more verbose description of the activity status.

Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Contains a friendly, more verbose description of the activity status.
    public String getStatusMessage() {
        return ;
    }
    
    
Contains a friendly, more verbose description of the activity status.

Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
statusMessage Contains a friendly, more verbose description of the activity status.
    public void setStatusMessage(String statusMessage) {
        this. = statusMessage;
    }
    
    
Contains a friendly, more verbose description of the activity status.

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

Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
statusMessage Contains a friendly, more verbose description of the activity status.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Activity withStatusMessage(String statusMessage) {
        this. = statusMessage;
        return this;
    }
    
    
    
Specifies a value between 0 and 100 that indicates the progress of the activity.

Returns:
Specifies a value between 0 and 100 that indicates the progress of the activity.
    public Integer getProgress() {
        return ;
    }
    
    
Specifies a value between 0 and 100 that indicates the progress of the activity.

Parameters:
progress Specifies a value between 0 and 100 that indicates the progress of the activity.
    public void setProgress(Integer progress) {
        this. = progress;
    }
    
    
Specifies a value between 0 and 100 that indicates the progress of the activity.

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

Parameters:
progress Specifies a value between 0 and 100 that indicates the progress of the activity.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Activity withProgress(Integer progress) {
        this. = progress;
        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("{");
        sb.append("ActivityId: " +  + ", ");
        sb.append("Description: " +  + ", ");
        sb.append("Cause: " +  + ", ");
        sb.append("StartTime: " +  + ", ");
        sb.append("EndTime: " +  + ", ");
        sb.append("StatusCode: " +  + ", ");
        sb.append("StatusMessage: " +  + ", ");
        sb.append("Progress: " +  + ", ");
        sb.append("}");
        return sb.toString();
    }
    
}
    
New to GrepCode? Check out our FAQ X