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.simpledb.model;
 
Domain Metadata Result
 
 public class DomainMetadataResult implements SerializableCloneable {

    
The number of all items in the domain.
 
     private Integer itemCount;

    
The total size of all item names in the domain, in bytes.
 
     private Long itemNamesSizeBytes;

    
The number of unique attribute names in the domain.
 
     private Integer attributeNameCount;

    
The total size of all unique attribute names in the domain, in bytes.
 
     private Long attributeNamesSizeBytes;

    
The number of all attribute name/value pairs in the domain.
 
     private Integer attributeValueCount;

    
The total size of all attribute values in the domain, in bytes.
 
     private Long attributeValuesSizeBytes;

    
The data and time when metadata was calculated, in Epoch (UNIX) seconds.
 
     private Integer timestamp;

    
The number of all items in the domain.

Returns:
The number of all items in the domain.
 
     public Integer getItemCount() {
         return ;
     }
    
    
The number of all items in the domain.

Parameters:
itemCount The number of all items in the domain.
 
     public void setItemCount(Integer itemCount) {
         this. = itemCount;
     }
    
    
The number of all items in the domain.

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

Parameters:
itemCount The number of all items in the domain.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DomainMetadataResult withItemCount(Integer itemCount) {
         this. = itemCount;
         return this;
     }

    
The total size of all item names in the domain, in bytes.

Returns:
The total size of all item names in the domain, in bytes.
 
     public Long getItemNamesSizeBytes() {
         return ;
    }
    
    
The total size of all item names in the domain, in bytes.

Parameters:
itemNamesSizeBytes The total size of all item names in the domain, in bytes.
    public void setItemNamesSizeBytes(Long itemNamesSizeBytes) {
        this. = itemNamesSizeBytes;
    }
    
    
The total size of all item names in the domain, in bytes.

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

Parameters:
itemNamesSizeBytes The total size of all item names in the domain, in bytes.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainMetadataResult withItemNamesSizeBytes(Long itemNamesSizeBytes) {
        this. = itemNamesSizeBytes;
        return this;
    }

    
The number of unique attribute names in the domain.

Returns:
The number of unique attribute names in the domain.
    public Integer getAttributeNameCount() {
        return ;
    }
    
    
The number of unique attribute names in the domain.

Parameters:
attributeNameCount The number of unique attribute names in the domain.
    public void setAttributeNameCount(Integer attributeNameCount) {
        this. = attributeNameCount;
    }
    
    
The number of unique attribute names in the domain.

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

Parameters:
attributeNameCount The number of unique attribute names in the domain.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainMetadataResult withAttributeNameCount(Integer attributeNameCount) {
        this. = attributeNameCount;
        return this;
    }

    
The total size of all unique attribute names in the domain, in bytes.

Returns:
The total size of all unique attribute names in the domain, in bytes.
    public Long getAttributeNamesSizeBytes() {
        return ;
    }
    
    
The total size of all unique attribute names in the domain, in bytes.

Parameters:
attributeNamesSizeBytes The total size of all unique attribute names in the domain, in bytes.
    public void setAttributeNamesSizeBytes(Long attributeNamesSizeBytes) {
        this. = attributeNamesSizeBytes;
    }
    
    
The total size of all unique attribute names in the domain, in bytes.

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

Parameters:
attributeNamesSizeBytes The total size of all unique attribute names in the domain, in bytes.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainMetadataResult withAttributeNamesSizeBytes(Long attributeNamesSizeBytes) {
        this. = attributeNamesSizeBytes;
        return this;
    }

    
The number of all attribute name/value pairs in the domain.

Returns:
The number of all attribute name/value pairs in the domain.
    public Integer getAttributeValueCount() {
        return ;
    }
    
    
The number of all attribute name/value pairs in the domain.

Parameters:
attributeValueCount The number of all attribute name/value pairs in the domain.
    public void setAttributeValueCount(Integer attributeValueCount) {
        this. = attributeValueCount;
    }
    
    
The number of all attribute name/value pairs in the domain.

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

Parameters:
attributeValueCount The number of all attribute name/value pairs in the domain.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainMetadataResult withAttributeValueCount(Integer attributeValueCount) {
        this. = attributeValueCount;
        return this;
    }

    
The total size of all attribute values in the domain, in bytes.

Returns:
The total size of all attribute values in the domain, in bytes.
    public Long getAttributeValuesSizeBytes() {
        return ;
    }
    
    
The total size of all attribute values in the domain, in bytes.

Parameters:
attributeValuesSizeBytes The total size of all attribute values in the domain, in bytes.
    public void setAttributeValuesSizeBytes(Long attributeValuesSizeBytes) {
        this. = attributeValuesSizeBytes;
    }
    
    
The total size of all attribute values in the domain, in bytes.

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

Parameters:
attributeValuesSizeBytes The total size of all attribute values in the domain, in bytes.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainMetadataResult withAttributeValuesSizeBytes(Long attributeValuesSizeBytes) {
        this. = attributeValuesSizeBytes;
        return this;
    }

    
The data and time when metadata was calculated, in Epoch (UNIX) seconds.

Returns:
The data and time when metadata was calculated, in Epoch (UNIX) seconds.
    public Integer getTimestamp() {
        return ;
    }
    
    
The data and time when metadata was calculated, in Epoch (UNIX) seconds.

Parameters:
timestamp The data and time when metadata was calculated, in Epoch (UNIX) seconds.
    public void setTimestamp(Integer timestamp) {
        this. = timestamp;
    }
    
    
The data and time when metadata was calculated, in Epoch (UNIX) seconds.

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

Parameters:
timestamp The data and time when metadata was calculated, in Epoch (UNIX) seconds.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainMetadataResult withTimestamp(Integer timestamp) {
        this. = timestamp;
        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 (getItemCount() != nullsb.append("ItemCount: " + getItemCount() + ",");
        if (getItemNamesSizeBytes() != nullsb.append("ItemNamesSizeBytes: " + getItemNamesSizeBytes() + ",");
        if (getAttributeNameCount() != nullsb.append("AttributeNameCount: " + getAttributeNameCount() + ",");
        if (getAttributeNamesSizeBytes() != nullsb.append("AttributeNamesSizeBytes: " + getAttributeNamesSizeBytes() + ",");
        if (getAttributeValueCount() != nullsb.append("AttributeValueCount: " + getAttributeValueCount() + ",");
        if (getAttributeValuesSizeBytes() != nullsb.append("AttributeValuesSizeBytes: " + getAttributeValuesSizeBytes() + ",");
        if (getTimestamp() != nullsb.append("Timestamp: " + getTimestamp() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getItemCount() == null) ? 0 : getItemCount().hashCode()); 
        hashCode = prime * hashCode + ((getItemNamesSizeBytes() == null) ? 0 : getItemNamesSizeBytes().hashCode()); 
        hashCode = prime * hashCode + ((getAttributeNameCount() == null) ? 0 : getAttributeNameCount().hashCode()); 
        hashCode = prime * hashCode + ((getAttributeNamesSizeBytes() == null) ? 0 : getAttributeNamesSizeBytes().hashCode()); 
        hashCode = prime * hashCode + ((getAttributeValueCount() == null) ? 0 : getAttributeValueCount().hashCode()); 
        hashCode = prime * hashCode + ((getAttributeValuesSizeBytes() == null) ? 0 : getAttributeValuesSizeBytes().hashCode()); 
        hashCode = prime * hashCode + ((getTimestamp() == null) ? 0 : getTimestamp().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DomainMetadataResult == falsereturn false;
        DomainMetadataResult other = (DomainMetadataResult)obj;
        
        if (other.getItemCount() == null ^ this.getItemCount() == nullreturn false;
        if (other.getItemCount() != null && other.getItemCount().equals(this.getItemCount()) == falsereturn false
        if (other.getItemNamesSizeBytes() == null ^ this.getItemNamesSizeBytes() == nullreturn false;
        if (other.getItemNamesSizeBytes() != null && other.getItemNamesSizeBytes().equals(this.getItemNamesSizeBytes()) == falsereturn false
        if (other.getAttributeNameCount() == null ^ this.getAttributeNameCount() == nullreturn false;
        if (other.getAttributeNameCount() != null && other.getAttributeNameCount().equals(this.getAttributeNameCount()) == falsereturn false
        if (other.getAttributeNamesSizeBytes() == null ^ this.getAttributeNamesSizeBytes() == nullreturn false;
        if (other.getAttributeNamesSizeBytes() != null && other.getAttributeNamesSizeBytes().equals(this.getAttributeNamesSizeBytes()) == falsereturn false
        if (other.getAttributeValueCount() == null ^ this.getAttributeValueCount() == nullreturn false;
        if (other.getAttributeValueCount() != null && other.getAttributeValueCount().equals(this.getAttributeValueCount()) == falsereturn false
        if (other.getAttributeValuesSizeBytes() == null ^ this.getAttributeValuesSizeBytes() == nullreturn false;
        if (other.getAttributeValuesSizeBytes() != null && other.getAttributeValuesSizeBytes().equals(this.getAttributeValuesSizeBytes()) == falsereturn false
        if (other.getTimestamp() == null ^ this.getTimestamp() == nullreturn false;
        if (other.getTimestamp() != null && other.getTimestamp().equals(this.getTimestamp()) == falsereturn false
        return true;
    }
    
    @Override
    public DomainMetadataResult clone() {
        try {
            return (DomainMetadataResultsuper.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