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

This object provides description of a file system.

 
 public class CreateFileSystemResult implements SerializableCloneable {

    

The AWS account that created the file system. If the file system was created by an IAM user, the parent account to which the user belongs is the owner.

 
     private String ownerId;
    

Opaque string specified in the request.

 
     private String creationToken;
    

The file system ID assigned by Amazon EFS.

 
     private String fileSystemId;
    

The time at which the file system was created, in seconds, since 1970-01-01T00:00:00Z.

 
     private java.util.Date creationTime;
    

A predefined string value that indicates the lifecycle phase of the file system.

 
     private String lifeCycleState;
    

You can add tags to a file system (see CreateTags) including a "Name" tag. If the file system has a "Name" tag, Amazon EFS returns the value in this field.

 
     private String name;
    

The current number of mount targets (see CreateMountTarget) the file system has.

 
     private Integer numberOfMountTargets;
    

This object provides the latest known metered size of data stored in the file system, in bytes, in its Value field, and the time at which that size was determined in its Timestamp field. The Timestamp value is the integer number of seconds since 1970-01-01T00:00:00Z. Note that the value does not represent the size of a consistent snapshot of the file system, but it is eventually consistent when there are no writes to the file system. That is, the value will represent actual size only if the file system is not modified for a period longer than a couple of hours. Otherwise, the value is not the exact size the file system was at any instant in time.

 
     private FileSystemSize sizeInBytes;

    

The AWS account that created the file system. If the file system was created by an IAM user, the parent account to which the user belongs is the owner.

Parameters:
ownerId The AWS account that created the file system. If the file system was created by an IAM user, the parent account to which the user belongs is the owner.
    public void setOwnerId(String ownerId) {
        this. = ownerId;
    }

    

The AWS account that created the file system. If the file system was created by an IAM user, the parent account to which the user belongs is the owner.

Returns:
The AWS account that created the file system. If the file system was created by an IAM user, the parent account to which the user belongs is the owner.
    public String getOwnerId() {
        return this.;
    }

    

The AWS account that created the file system. If the file system was created by an IAM user, the parent account to which the user belongs is the owner.

Parameters:
ownerId The AWS account that created the file system. If the file system was created by an IAM user, the parent account to which the user belongs is the owner.
Returns:
Returns a reference to this object so that method calls can be chained together.
    public CreateFileSystemResult withOwnerId(String ownerId) {
        setOwnerId(ownerId);
        return this;
    }

    

Opaque string specified in the request.

Parameters:
creationToken Opaque string specified in the request.
    public void setCreationToken(String creationToken) {
        this. = creationToken;
    }

    

Opaque string specified in the request.

Returns:
Opaque string specified in the request.
    public String getCreationToken() {
        return this.;
    }

    

Opaque string specified in the request.

Parameters:
creationToken Opaque string specified in the request.
Returns:
Returns a reference to this object so that method calls can be chained together.
    public CreateFileSystemResult withCreationToken(String creationToken) {
        setCreationToken(creationToken);
        return this;
    }

    

The file system ID assigned by Amazon EFS.

Parameters:
fileSystemId The file system ID assigned by Amazon EFS.
    public void setFileSystemId(String fileSystemId) {
        this. = fileSystemId;
    }

    

The file system ID assigned by Amazon EFS.

Returns:
The file system ID assigned by Amazon EFS.
    public String getFileSystemId() {
        return this.;
    }

    

The file system ID assigned by Amazon EFS.

Parameters:
fileSystemId The file system ID assigned by Amazon EFS.
Returns:
Returns a reference to this object so that method calls can be chained together.
    public CreateFileSystemResult withFileSystemId(String fileSystemId) {
        setFileSystemId(fileSystemId);
        return this;
    }

    

The time at which the file system was created, in seconds, since 1970-01-01T00:00:00Z.

Parameters:
creationTime The time at which the file system was created, in seconds, since 1970-01-01T00:00:00Z.
    public void setCreationTime(java.util.Date creationTime) {
        this. = creationTime;
    }

    

The time at which the file system was created, in seconds, since 1970-01-01T00:00:00Z.

Returns:
The time at which the file system was created, in seconds, since 1970-01-01T00:00:00Z.
    public java.util.Date getCreationTime() {
        return this.;
    }

    

The time at which the file system was created, in seconds, since 1970-01-01T00:00:00Z.

Parameters:
creationTime The time at which the file system was created, in seconds, since 1970-01-01T00:00:00Z.
Returns:
Returns a reference to this object so that method calls can be chained together.
    public CreateFileSystemResult withCreationTime(java.util.Date creationTime) {
        setCreationTime(creationTime);
        return this;
    }

    

A predefined string value that indicates the lifecycle phase of the file system.

Parameters:
lifeCycleState A predefined string value that indicates the lifecycle phase of the file system.
See also:
LifeCycleState
    public void setLifeCycleState(String lifeCycleState) {
        this. = lifeCycleState;
    }

    

A predefined string value that indicates the lifecycle phase of the file system.

Returns:
A predefined string value that indicates the lifecycle phase of the file system.
See also:
LifeCycleState
    public String getLifeCycleState() {
        return this.;
    }

    

A predefined string value that indicates the lifecycle phase of the file system.

Parameters:
lifeCycleState A predefined string value that indicates the lifecycle phase of the file system.
Returns:
Returns a reference to this object so that method calls can be chained together.
See also:
LifeCycleState
    public CreateFileSystemResult withLifeCycleState(String lifeCycleState) {
        setLifeCycleState(lifeCycleState);
        return this;
    }

    

A predefined string value that indicates the lifecycle phase of the file system.

Parameters:
lifeCycleState A predefined string value that indicates the lifecycle phase of the file system.
Returns:
Returns a reference to this object so that method calls can be chained together.
See also:
LifeCycleState
    public void setLifeCycleState(LifeCycleState lifeCycleState) {
        this. = lifeCycleState.toString();
    }

    

A predefined string value that indicates the lifecycle phase of the file system.

Parameters:
lifeCycleState A predefined string value that indicates the lifecycle phase of the file system.
Returns:
Returns a reference to this object so that method calls can be chained together.
See also:
LifeCycleState
            LifeCycleState lifeCycleState) {
        setLifeCycleState(lifeCycleState);
        return this;
    }

    

You can add tags to a file system (see CreateTags) including a "Name" tag. If the file system has a "Name" tag, Amazon EFS returns the value in this field.

Parameters:
name You can add tags to a file system (see CreateTags) including a "Name" tag. If the file system has a "Name" tag, Amazon EFS returns the value in this field.
    public void setName(String name) {
        this. = name;
    }

    

You can add tags to a file system (see CreateTags) including a "Name" tag. If the file system has a "Name" tag, Amazon EFS returns the value in this field.

Returns:
You can add tags to a file system (see CreateTags) including a "Name" tag. If the file system has a "Name" tag, Amazon EFS returns the value in this field.
    public String getName() {
        return this.;
    }

    

You can add tags to a file system (see CreateTags) including a "Name" tag. If the file system has a "Name" tag, Amazon EFS returns the value in this field.

Parameters:
name You can add tags to a file system (see CreateTags) including a "Name" tag. If the file system has a "Name" tag, Amazon EFS returns the value in this field.
Returns:
Returns a reference to this object so that method calls can be chained together.
    public CreateFileSystemResult withName(String name) {
        setName(name);
        return this;
    }

    

The current number of mount targets (see CreateMountTarget) the file system has.

Parameters:
numberOfMountTargets The current number of mount targets (see CreateMountTarget) the file system has.
    public void setNumberOfMountTargets(Integer numberOfMountTargets) {
        this. = numberOfMountTargets;
    }

    

The current number of mount targets (see CreateMountTarget) the file system has.

Returns:
The current number of mount targets (see CreateMountTarget) the file system has.
    public Integer getNumberOfMountTargets() {
        return this.;
    }

    

The current number of mount targets (see CreateMountTarget) the file system has.

Parameters:
numberOfMountTargets The current number of mount targets (see CreateMountTarget) the file system has.
Returns:
Returns a reference to this object so that method calls can be chained together.
            Integer numberOfMountTargets) {
        setNumberOfMountTargets(numberOfMountTargets);
        return this;
    }

    

This object provides the latest known metered size of data stored in the file system, in bytes, in its Value field, and the time at which that size was determined in its Timestamp field. The Timestamp value is the integer number of seconds since 1970-01-01T00:00:00Z. Note that the value does not represent the size of a consistent snapshot of the file system, but it is eventually consistent when there are no writes to the file system. That is, the value will represent actual size only if the file system is not modified for a period longer than a couple of hours. Otherwise, the value is not the exact size the file system was at any instant in time.

Parameters:
sizeInBytes This object provides the latest known metered size of data stored in the file system, in bytes, in its Value field, and the time at which that size was determined in its Timestamp field. The Timestamp value is the integer number of seconds since 1970-01-01T00:00:00Z. Note that the value does not represent the size of a consistent snapshot of the file system, but it is eventually consistent when there are no writes to the file system. That is, the value will represent actual size only if the file system is not modified for a period longer than a couple of hours. Otherwise, the value is not the exact size the file system was at any instant in time.
    public void setSizeInBytes(FileSystemSize sizeInBytes) {
        this. = sizeInBytes;
    }

    

This object provides the latest known metered size of data stored in the file system, in bytes, in its Value field, and the time at which that size was determined in its Timestamp field. The Timestamp value is the integer number of seconds since 1970-01-01T00:00:00Z. Note that the value does not represent the size of a consistent snapshot of the file system, but it is eventually consistent when there are no writes to the file system. That is, the value will represent actual size only if the file system is not modified for a period longer than a couple of hours. Otherwise, the value is not the exact size the file system was at any instant in time.

Returns:
This object provides the latest known metered size of data stored in the file system, in bytes, in its Value field, and the time at which that size was determined in its Timestamp field. The Timestamp value is the integer number of seconds since 1970-01-01T00:00:00Z. Note that the value does not represent the size of a consistent snapshot of the file system, but it is eventually consistent when there are no writes to the file system. That is, the value will represent actual size only if the file system is not modified for a period longer than a couple of hours. Otherwise, the value is not the exact size the file system was at any instant in time.
    public FileSystemSize getSizeInBytes() {
        return this.;
    }

    

This object provides the latest known metered size of data stored in the file system, in bytes, in its Value field, and the time at which that size was determined in its Timestamp field. The Timestamp value is the integer number of seconds since 1970-01-01T00:00:00Z. Note that the value does not represent the size of a consistent snapshot of the file system, but it is eventually consistent when there are no writes to the file system. That is, the value will represent actual size only if the file system is not modified for a period longer than a couple of hours. Otherwise, the value is not the exact size the file system was at any instant in time.

Parameters:
sizeInBytes This object provides the latest known metered size of data stored in the file system, in bytes, in its Value field, and the time at which that size was determined in its Timestamp field. The Timestamp value is the integer number of seconds since 1970-01-01T00:00:00Z. Note that the value does not represent the size of a consistent snapshot of the file system, but it is eventually consistent when there are no writes to the file system. That is, the value will represent actual size only if the file system is not modified for a period longer than a couple of hours. Otherwise, the value is not the exact size the file system was at any instant in time.
Returns:
Returns a reference to this object so that method calls can be chained together.
    public CreateFileSystemResult withSizeInBytes(FileSystemSize sizeInBytes) {
        setSizeInBytes(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 (getOwnerId() != null)
            sb.append("OwnerId: " + getOwnerId() + ",");
        if (getCreationToken() != null)
            sb.append("CreationToken: " + getCreationToken() + ",");
        if (getFileSystemId() != null)
            sb.append("FileSystemId: " + getFileSystemId() + ",");
        if (getCreationTime() != null)
            sb.append("CreationTime: " + getCreationTime() + ",");
        if (getLifeCycleState() != null)
            sb.append("LifeCycleState: " + getLifeCycleState() + ",");
        if (getName() != null)
            sb.append("Name: " + getName() + ",");
        if (getNumberOfMountTargets() != null)
            sb.append("NumberOfMountTargets: " + getNumberOfMountTargets()
                    + ",");
        if (getSizeInBytes() != null)
            sb.append("SizeInBytes: " + getSizeInBytes());
        sb.append("}");
        return sb.toString();
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (obj instanceof CreateFileSystemResult == false)
            return false;
        CreateFileSystemResult other = (CreateFileSystemResultobj;
        if (other.getOwnerId() == null ^ this.getOwnerId() == null)
            return false;
        if (other.getOwnerId() != null
                && other.getOwnerId().equals(this.getOwnerId()) == false)
            return false;
        if (other.getCreationToken() == null ^ this.getCreationToken() == null)
            return false;
        if (other.getCreationToken() != null
                && other.getCreationToken().equals(this.getCreationToken()) == false)
            return false;
        if (other.getFileSystemId() == null ^ this.getFileSystemId() == null)
            return false;
        if (other.getFileSystemId() != null
                && other.getFileSystemId().equals(this.getFileSystemId()) == false)
            return false;
        if (other.getCreationTime() == null ^ this.getCreationTime() == null)
            return false;
        if (other.getCreationTime() != null
                && other.getCreationTime().equals(this.getCreationTime()) == false)
            return false;
        if (other.getLifeCycleState() == null
                ^ this.getLifeCycleState() == null)
            return false;
        if (other.getLifeCycleState() != null
                && other.getLifeCycleState().equals(this.getLifeCycleState()) == false)
            return false;
        if (other.getName() == null ^ this.getName() == null)
            return false;
        if (other.getName() != null
                && other.getName().equals(this.getName()) == false)
            return false;
        if (other.getNumberOfMountTargets() == null
                ^ this.getNumberOfMountTargets() == null)
            return false;
        if (other.getNumberOfMountTargets() != null
                && other.getNumberOfMountTargets().equals(
                        this.getNumberOfMountTargets()) == false)
            return false;
        if (other.getSizeInBytes() == null ^ this.getSizeInBytes() == null)
            return false;
        if (other.getSizeInBytes() != null
                && other.getSizeInBytes().equals(this.getSizeInBytes()) == false)
            return false;
        return true;
    }
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        hashCode = prime * hashCode
                + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode());
        hashCode = prime
                * hashCode
                + ((getCreationToken() == null) ? 0 : getCreationToken()
                        .hashCode());
        hashCode = prime
                * hashCode
                + ((getFileSystemId() == null) ? 0 : getFileSystemId()
                        .hashCode());
        hashCode = prime
                * hashCode
                + ((getCreationTime() == null) ? 0 : getCreationTime()
                        .hashCode());
        hashCode = prime
                * hashCode
                + ((getLifeCycleState() == null) ? 0 : getLifeCycleState()
                        .hashCode());
        hashCode = prime * hashCode
                + ((getName() == null) ? 0 : getName().hashCode());
        hashCode = prime
                * hashCode
                + ((getNumberOfMountTargets() == null) ? 0
                        : getNumberOfMountTargets().hashCode());
        hashCode = prime
                * hashCode
                + ((getSizeInBytes() == null) ? 0 : getSizeInBytes().hashCode());
        return hashCode;
    }
    @Override
    public CreateFileSystemResult clone() {
        try {
            return (CreateFileSystemResultsuper.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