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 mount target.

 
 public class MountTargetDescription implements SerializableCloneable {

    
The AWS account ID that owns the resource.

Constraints:
Pattern: [0-9]{12}

 
     private String ownerId;

    
The system-assigned mount target ID.

Constraints:
Pattern: fsmt-[0-9a-f]{8}

 
     private String mountTargetId;

    
The ID of the file system for which the mount target is intended.

Constraints:
Pattern: fs-[0-9a-f]{8}

 
     private String fileSystemId;

    
The ID of the subnet that the mount target is in.

Constraints:
Pattern: subnet-[0-9a-f]{8}

 
     private String subnetId;

    
The lifecycle state the mount target is in.

Constraints:
Allowed Values: creating, available, deleting, deleted

 
     private String lifeCycleState;

    
The address at which the file system may be mounted via the mount target.

Constraints:
Pattern: [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}

 
     private String ipAddress;

    
The ID of the network interface that Amazon EFS created when it created the mount target.

Constraints:
Pattern: eni-[0-9a-f]{8}

 
     private String networkInterfaceId;

    
The AWS account ID that owns the resource.

Constraints:
Pattern: [0-9]{12}

Returns:
The AWS account ID that owns the resource.
 
     public String getOwnerId() {
         return ;
     }
    
    
The AWS account ID that owns the resource.

Constraints:
Pattern: [0-9]{12}

Parameters:
ownerId The AWS account ID that owns the resource.
    public void setOwnerId(String ownerId) {
        this. = ownerId;
    }
    
    
The AWS account ID that owns the resource.

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

Constraints:
Pattern: [0-9]{12}

Parameters:
ownerId The AWS account ID that owns the resource.
Returns:
A reference to this updated object so that method calls can be chained together.
    public MountTargetDescription withOwnerId(String ownerId) {
        this. = ownerId;
        return this;
    }

    
The system-assigned mount target ID.

Constraints:
Pattern: fsmt-[0-9a-f]{8}

Returns:
The system-assigned mount target ID.
    public String getMountTargetId() {
        return ;
    }
    
    
The system-assigned mount target ID.

Constraints:
Pattern: fsmt-[0-9a-f]{8}

Parameters:
mountTargetId The system-assigned mount target ID.
    public void setMountTargetId(String mountTargetId) {
        this. = mountTargetId;
    }
    
    
The system-assigned mount target ID.

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

Constraints:
Pattern: fsmt-[0-9a-f]{8}

Parameters:
mountTargetId The system-assigned mount target ID.
Returns:
A reference to this updated object so that method calls can be chained together.
    public MountTargetDescription withMountTargetId(String mountTargetId) {
        this. = mountTargetId;
        return this;
    }

    
The ID of the file system for which the mount target is intended.

Constraints:
Pattern: fs-[0-9a-f]{8}

Returns:
The ID of the file system for which the mount target is intended.
    public String getFileSystemId() {
        return ;
    }
    
    
The ID of the file system for which the mount target is intended.

Constraints:
Pattern: fs-[0-9a-f]{8}

Parameters:
fileSystemId The ID of the file system for which the mount target is intended.
    public void setFileSystemId(String fileSystemId) {
        this. = fileSystemId;
    }
    
    
The ID of the file system for which the mount target is intended.

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

Constraints:
Pattern: fs-[0-9a-f]{8}

Parameters:
fileSystemId The ID of the file system for which the mount target is intended.
Returns:
A reference to this updated object so that method calls can be chained together.
    public MountTargetDescription withFileSystemId(String fileSystemId) {
        this. = fileSystemId;
        return this;
    }

    
The ID of the subnet that the mount target is in.

Constraints:
Pattern: subnet-[0-9a-f]{8}

Returns:
The ID of the subnet that the mount target is in.
    public String getSubnetId() {
        return ;
    }
    
    
The ID of the subnet that the mount target is in.

Constraints:
Pattern: subnet-[0-9a-f]{8}

Parameters:
subnetId The ID of the subnet that the mount target is in.
    public void setSubnetId(String subnetId) {
        this. = subnetId;
    }
    
    
The ID of the subnet that the mount target is in.

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

Constraints:
Pattern: subnet-[0-9a-f]{8}

Parameters:
subnetId The ID of the subnet that the mount target is in.
Returns:
A reference to this updated object so that method calls can be chained together.
    public MountTargetDescription withSubnetId(String subnetId) {
        this. = subnetId;
        return this;
    }

    
The lifecycle state the mount target is in.

Constraints:
Allowed Values: creating, available, deleting, deleted

Returns:
The lifecycle state the mount target is in.
See also:
LifeCycleState
    public String getLifeCycleState() {
        return ;
    }
    
    
The lifecycle state the mount target is in.

Constraints:
Allowed Values: creating, available, deleting, deleted

Parameters:
lifeCycleState The lifecycle state the mount target is in.
See also:
LifeCycleState
    public void setLifeCycleState(String lifeCycleState) {
        this. = lifeCycleState;
    }
    
    
The lifecycle state the mount target is in.

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

Constraints:
Allowed Values: creating, available, deleting, deleted

Parameters:
lifeCycleState The lifecycle state the mount target is in.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
LifeCycleState
    public MountTargetDescription withLifeCycleState(String lifeCycleState) {
        this. = lifeCycleState;
        return this;
    }

    
The lifecycle state the mount target is in.

Constraints:
Allowed Values: creating, available, deleting, deleted

Parameters:
lifeCycleState The lifecycle state the mount target is in.
See also:
LifeCycleState
    public void setLifeCycleState(LifeCycleState lifeCycleState) {
        this. = lifeCycleState.toString();
    }
    
    
The lifecycle state the mount target is in.

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

Constraints:
Allowed Values: creating, available, deleting, deleted

Parameters:
lifeCycleState The lifecycle state the mount target is in.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
LifeCycleState
    public MountTargetDescription withLifeCycleState(LifeCycleState lifeCycleState) {
        this. = lifeCycleState.toString();
        return this;
    }

    
The address at which the file system may be mounted via the mount target.

Constraints:
Pattern: [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}

Returns:
The address at which the file system may be mounted via the mount target.
    public String getIpAddress() {
        return ;
    }
    
    
The address at which the file system may be mounted via the mount target.

Constraints:
Pattern: [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}

Parameters:
ipAddress The address at which the file system may be mounted via the mount target.
    public void setIpAddress(String ipAddress) {
        this. = ipAddress;
    }
    
    
The address at which the file system may be mounted via the mount target.

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

Constraints:
Pattern: [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}

Parameters:
ipAddress The address at which the file system may be mounted via the mount target.
Returns:
A reference to this updated object so that method calls can be chained together.
    public MountTargetDescription withIpAddress(String ipAddress) {
        this. = ipAddress;
        return this;
    }

    
The ID of the network interface that Amazon EFS created when it created the mount target.

Constraints:
Pattern: eni-[0-9a-f]{8}

Returns:
The ID of the network interface that Amazon EFS created when it created the mount target.
    public String getNetworkInterfaceId() {
        return ;
    }
    
    
The ID of the network interface that Amazon EFS created when it created the mount target.

Constraints:
Pattern: eni-[0-9a-f]{8}

Parameters:
networkInterfaceId The ID of the network interface that Amazon EFS created when it created the mount target.
    public void setNetworkInterfaceId(String networkInterfaceId) {
        this. = networkInterfaceId;
    }
    
    
The ID of the network interface that Amazon EFS created when it created the mount target.

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

Constraints:
Pattern: eni-[0-9a-f]{8}

Parameters:
networkInterfaceId The ID of the network interface that Amazon EFS created when it created the mount target.
Returns:
A reference to this updated object so that method calls can be chained together.
    public MountTargetDescription withNetworkInterfaceId(String networkInterfaceId) {
        this. = networkInterfaceId;
        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() != nullsb.append("OwnerId: " + getOwnerId() + ",");
        if (getMountTargetId() != nullsb.append("MountTargetId: " + getMountTargetId() + ",");
        if (getFileSystemId() != nullsb.append("FileSystemId: " + getFileSystemId() + ",");
        if (getSubnetId() != nullsb.append("SubnetId: " + getSubnetId() + ",");
        if (getLifeCycleState() != nullsb.append("LifeCycleState: " + getLifeCycleState() + ",");
        if (getIpAddress() != nullsb.append("IpAddress: " + getIpAddress() + ",");
        if (getNetworkInterfaceId() != nullsb.append("NetworkInterfaceId: " + getNetworkInterfaceId() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode()); 
        hashCode = prime * hashCode + ((getMountTargetId() == null) ? 0 : getMountTargetId().hashCode()); 
        hashCode = prime * hashCode + ((getFileSystemId() == null) ? 0 : getFileSystemId().hashCode()); 
        hashCode = prime * hashCode + ((getSubnetId() == null) ? 0 : getSubnetId().hashCode()); 
        hashCode = prime * hashCode + ((getLifeCycleState() == null) ? 0 : getLifeCycleState().hashCode()); 
        hashCode = prime * hashCode + ((getIpAddress() == null) ? 0 : getIpAddress().hashCode()); 
        hashCode = prime * hashCode + ((getNetworkInterfaceId() == null) ? 0 : getNetworkInterfaceId().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof MountTargetDescription == falsereturn false;
        MountTargetDescription other = (MountTargetDescription)obj;
        
        if (other.getOwnerId() == null ^ this.getOwnerId() == nullreturn false;
        if (other.getOwnerId() != null && other.getOwnerId().equals(this.getOwnerId()) == falsereturn false
        if (other.getMountTargetId() == null ^ this.getMountTargetId() == nullreturn false;
        if (other.getMountTargetId() != null && other.getMountTargetId().equals(this.getMountTargetId()) == falsereturn false
        if (other.getFileSystemId() == null ^ this.getFileSystemId() == nullreturn false;
        if (other.getFileSystemId() != null && other.getFileSystemId().equals(this.getFileSystemId()) == falsereturn false
        if (other.getSubnetId() == null ^ this.getSubnetId() == nullreturn false;
        if (other.getSubnetId() != null && other.getSubnetId().equals(this.getSubnetId()) == falsereturn false
        if (other.getLifeCycleState() == null ^ this.getLifeCycleState() == nullreturn false;
        if (other.getLifeCycleState() != null && other.getLifeCycleState().equals(this.getLifeCycleState()) == falsereturn false
        if (other.getIpAddress() == null ^ this.getIpAddress() == nullreturn false;
        if (other.getIpAddress() != null && other.getIpAddress().equals(this.getIpAddress()) == falsereturn false
        if (other.getNetworkInterfaceId() == null ^ this.getNetworkInterfaceId() == nullreturn false;
        if (other.getNetworkInterfaceId() != null && other.getNetworkInterfaceId().equals(this.getNetworkInterfaceId()) == falsereturn false
        return true;
    }
    
    @Override
    public MountTargetDescription clone() {
        try {
            return (MountTargetDescriptionsuper.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