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.glacier.model;
 

Contains the Amazon Glacier response to your request.

 
 public class DescribeVaultOutput implements SerializableCloneable {

    
The Amazon Resource Name (ARN) of the vault.
 
     private String vaultARN;

    
The name of the vault.
 
     private String vaultName;

    
The UTC date when the vault was created. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
 
     private String creationDate;

    
The UTC date when Amazon Glacier completed the last vault inventory. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
 
     private String lastInventoryDate;

    
The number of archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.
 
     private Long numberOfArchives;

    
Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.
 
     private Long sizeInBytes;

    
The Amazon Resource Name (ARN) of the vault.

Returns:
The Amazon Resource Name (ARN) of the vault.
 
     public String getVaultARN() {
         return ;
     }
    
    
The Amazon Resource Name (ARN) of the vault.

Parameters:
vaultARN The Amazon Resource Name (ARN) of the vault.
 
     public void setVaultARN(String vaultARN) {
         this. = vaultARN;
     }
    
    
The Amazon Resource Name (ARN) of the vault.

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

Parameters:
vaultARN The Amazon Resource Name (ARN) of the vault.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeVaultOutput withVaultARN(String vaultARN) {
         this. = vaultARN;
         return this;
     }

    
The name of the vault.

Returns:
The name of the vault.
    public String getVaultName() {
        return ;
    }
    
    
The name of the vault.

Parameters:
vaultName The name of the vault.
    public void setVaultName(String vaultName) {
        this. = vaultName;
    }
    
    
The name of the vault.

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

Parameters:
vaultName The name of the vault.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeVaultOutput withVaultName(String vaultName) {
        this. = vaultName;
        return this;
    }

    
The UTC date when the vault was created. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".

Returns:
The UTC date when the vault was created. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
    public String getCreationDate() {
        return ;
    }
    
    
The UTC date when the vault was created. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".

Parameters:
creationDate The UTC date when the vault was created. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
    public void setCreationDate(String creationDate) {
        this. = creationDate;
    }
    
    
The UTC date when the vault was created. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".

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

Parameters:
creationDate The UTC date when the vault was created. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeVaultOutput withCreationDate(String creationDate) {
        this. = creationDate;
        return this;
    }

    
The UTC date when Amazon Glacier completed the last vault inventory. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".

Returns:
The UTC date when Amazon Glacier completed the last vault inventory. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
    public String getLastInventoryDate() {
        return ;
    }
    
    
The UTC date when Amazon Glacier completed the last vault inventory. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".

Parameters:
lastInventoryDate The UTC date when Amazon Glacier completed the last vault inventory. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
    public void setLastInventoryDate(String lastInventoryDate) {
        this. = lastInventoryDate;
    }
    
    
The UTC date when Amazon Glacier completed the last vault inventory. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".

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

Parameters:
lastInventoryDate The UTC date when Amazon Glacier completed the last vault inventory. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeVaultOutput withLastInventoryDate(String lastInventoryDate) {
        this. = lastInventoryDate;
        return this;
    }

    
The number of archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.

Returns:
The number of archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.
    public Long getNumberOfArchives() {
        return ;
    }
    
    
The number of archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.

Parameters:
numberOfArchives The number of archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.
    public void setNumberOfArchives(Long numberOfArchives) {
        this. = numberOfArchives;
    }
    
    
The number of archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.

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

Parameters:
numberOfArchives The number of archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeVaultOutput withNumberOfArchives(Long numberOfArchives) {
        this. = numberOfArchives;
        return this;
    }

    
Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.

Returns:
Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.
    public Long getSizeInBytes() {
        return ;
    }
    
    
Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.

Parameters:
sizeInBytes Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.
    public void setSizeInBytes(Long sizeInBytes) {
        this. = sizeInBytes;
    }
    
    
Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.

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

Parameters:
sizeInBytes Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeVaultOutput withSizeInBytes(Long sizeInBytes) {
        this. = sizeInBytes;
        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 (getVaultARN() != nullsb.append("VaultARN: " + getVaultARN() + ",");
        if (getVaultName() != nullsb.append("VaultName: " + getVaultName() + ",");
        if (getCreationDate() != nullsb.append("CreationDate: " + getCreationDate() + ",");
        if (getLastInventoryDate() != nullsb.append("LastInventoryDate: " + getLastInventoryDate() + ",");
        if (getNumberOfArchives() != nullsb.append("NumberOfArchives: " + getNumberOfArchives() + ",");
        if (getSizeInBytes() != nullsb.append("SizeInBytes: " + getSizeInBytes() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getVaultARN() == null) ? 0 : getVaultARN().hashCode()); 
        hashCode = prime * hashCode + ((getVaultName() == null) ? 0 : getVaultName().hashCode()); 
        hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); 
        hashCode = prime * hashCode + ((getLastInventoryDate() == null) ? 0 : getLastInventoryDate().hashCode()); 
        hashCode = prime * hashCode + ((getNumberOfArchives() == null) ? 0 : getNumberOfArchives().hashCode()); 
        hashCode = prime * hashCode + ((getSizeInBytes() == null) ? 0 : getSizeInBytes().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DescribeVaultOutput == falsereturn false;
        DescribeVaultOutput other = (DescribeVaultOutput)obj;
        
        if (other.getVaultARN() == null ^ this.getVaultARN() == nullreturn false;
        if (other.getVaultARN() != null && other.getVaultARN().equals(this.getVaultARN()) == falsereturn false
        if (other.getVaultName() == null ^ this.getVaultName() == nullreturn false;
        if (other.getVaultName() != null && other.getVaultName().equals(this.getVaultName()) == falsereturn false
        if (other.getCreationDate() == null ^ this.getCreationDate() == nullreturn false;
        if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == falsereturn false
        if (other.getLastInventoryDate() == null ^ this.getLastInventoryDate() == nullreturn false;
        if (other.getLastInventoryDate() != null && other.getLastInventoryDate().equals(this.getLastInventoryDate()) == falsereturn false
        if (other.getNumberOfArchives() == null ^ this.getNumberOfArchives() == nullreturn false;
        if (other.getNumberOfArchives() != null && other.getNumberOfArchives().equals(this.getNumberOfArchives()) == falsereturn false
        if (other.getSizeInBytes() == null ^ this.getSizeInBytes() == nullreturn false;
        if (other.getSizeInBytes() != null && other.getSizeInBytes().equals(this.getSizeInBytes()) == falsereturn false
        return true;
    }
    
    @Override
    public DescribeVaultOutput clone() {
        try {
            return (DescribeVaultOutputsuper.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