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.storagegateway.model;
 
Describe Snapshot Schedule Result
 
 public class DescribeSnapshotScheduleResult implements SerializableCloneable {
 
     private String volumeARN;
 
     private Integer startAt;
 
     private Integer recurrenceInHours;
 
     private String description;
 
     private String timezone;

    
Returns the value of the VolumeARN property for this object.

Constraints:
Length: 50 - 500

Returns:
The value of the VolumeARN property for this object.
 
     public String getVolumeARN() {
         return ;
     }
    
    
Sets the value of the VolumeARN property for this object.

Constraints:
Length: 50 - 500

Parameters:
volumeARN The new value for the VolumeARN property for this object.
 
     public void setVolumeARN(String volumeARN) {
         this. = volumeARN;
     }
    
    
Sets the value of the VolumeARN property for this object.

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

Constraints:
Length: 50 - 500

Parameters:
volumeARN The new value for the VolumeARN property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeSnapshotScheduleResult withVolumeARN(String volumeARN) {
         this. = volumeARN;
         return this;
     }

    
Returns the value of the StartAt property for this object.

Constraints:
Range: 0 - 23

Returns:
The value of the StartAt property for this object.
 
     public Integer getStartAt() {
         return ;
     }
    
    
Sets the value of the StartAt property for this object.

Constraints:
Range: 0 - 23

Parameters:
startAt The new value for the StartAt property for this object.
 
     public void setStartAt(Integer startAt) {
         this. = startAt;
     }
    
    
Sets the value of the StartAt property for this object.

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

Constraints:
Range: 0 - 23

Parameters:
startAt The new value for the StartAt property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = startAt;
        return this;
    }

    
Returns the value of the RecurrenceInHours property for this object.

Constraints:
Range: 1 - 24

Returns:
The value of the RecurrenceInHours property for this object.
    public Integer getRecurrenceInHours() {
        return ;
    }
    
    
Sets the value of the RecurrenceInHours property for this object.

Constraints:
Range: 1 - 24

Parameters:
recurrenceInHours The new value for the RecurrenceInHours property for this object.
    public void setRecurrenceInHours(Integer recurrenceInHours) {
        this. = recurrenceInHours;
    }
    
    
Sets the value of the RecurrenceInHours property for this object.

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

Constraints:
Range: 1 - 24

Parameters:
recurrenceInHours The new value for the RecurrenceInHours property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeSnapshotScheduleResult withRecurrenceInHours(Integer recurrenceInHours) {
        this. = recurrenceInHours;
        return this;
    }

    
Returns the value of the Description property for this object.

Constraints:
Length: 1 - 255

Returns:
The value of the Description property for this object.
    public String getDescription() {
        return ;
    }
    
    
Sets the value of the Description property for this object.

Constraints:
Length: 1 - 255

Parameters:
description The new value for the Description property for this object.
    public void setDescription(String description) {
        this. = description;
    }
    
    
Sets the value of the Description property for this object.

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

Constraints:
Length: 1 - 255

Parameters:
description The new value for the Description property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeSnapshotScheduleResult withDescription(String description) {
        this. = description;
        return this;
    }

    
Returns the value of the Timezone property for this object.

Constraints:
Length: 3 - 10

Returns:
The value of the Timezone property for this object.
    public String getTimezone() {
        return ;
    }
    
    
Sets the value of the Timezone property for this object.

Constraints:
Length: 3 - 10

Parameters:
timezone The new value for the Timezone property for this object.
    public void setTimezone(String timezone) {
        this. = timezone;
    }
    
    
Sets the value of the Timezone property for this object.

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

Constraints:
Length: 3 - 10

Parameters:
timezone The new value for the Timezone property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = timezone;
        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 (getVolumeARN() != nullsb.append("VolumeARN: " + getVolumeARN() + ",");
        if (getStartAt() != nullsb.append("StartAt: " + getStartAt() + ",");
        if (getRecurrenceInHours() != nullsb.append("RecurrenceInHours: " + getRecurrenceInHours() + ",");
        if (getDescription() != nullsb.append("Description: " + getDescription() + ",");
        if (getTimezone() != nullsb.append("Timezone: " + getTimezone() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getVolumeARN() == null) ? 0 : getVolumeARN().hashCode()); 
        hashCode = prime * hashCode + ((getStartAt() == null) ? 0 : getStartAt().hashCode()); 
        hashCode = prime * hashCode + ((getRecurrenceInHours() == null) ? 0 : getRecurrenceInHours().hashCode()); 
        hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); 
        hashCode = prime * hashCode + ((getTimezone() == null) ? 0 : getTimezone().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DescribeSnapshotScheduleResult == falsereturn false;
        
        if (other.getVolumeARN() == null ^ this.getVolumeARN() == nullreturn false;
        if (other.getVolumeARN() != null && other.getVolumeARN().equals(this.getVolumeARN()) == falsereturn false
        if (other.getStartAt() == null ^ this.getStartAt() == nullreturn false;
        if (other.getStartAt() != null && other.getStartAt().equals(this.getStartAt()) == falsereturn false
        if (other.getRecurrenceInHours() == null ^ this.getRecurrenceInHours() == nullreturn false;
        if (other.getRecurrenceInHours() != null && other.getRecurrenceInHours().equals(this.getRecurrenceInHours()) == falsereturn false
        if (other.getDescription() == null ^ this.getDescription() == nullreturn false;
        if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == falsereturn false
        if (other.getTimezone() == null ^ this.getTimezone() == nullreturn false;
        if (other.getTimezone() != null && other.getTimezone().equals(this.getTimezone()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (DescribeSnapshotScheduleResultsuper.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