All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.batch.model.Tmpfs Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Batch module holds the client classes that are used for communicating with AWS Batch.

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2019-2024 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.batch.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The container path, mount options, and size of the tmpfs mount. *

* *

* This object isn't applicable to jobs that are running on Fargate resources. *

*
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Tmpfs implements Serializable, Cloneable, StructuredPojo { /** *

* The absolute file path in the container where the tmpfs volume is mounted. *

*/ private String containerPath; /** *

* The size (in MiB) of the tmpfs volume. *

*/ private Integer size; /** *

* The list of tmpfs volume mount options. *

*

* Valid values: "defaults" | "ro" | "rw" | "suid" | " * nosuid" | "dev" | "nodev" | "exec" | "noexec * " | "sync" | "async" | "dirsync" | "remount" | " * mand" | "nomand" | "atime" | "noatime" | " * diratime" | "nodiratime" | "bind" | " * rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime * " | "norelatime" | "strictatime" | "nostrictatime" | "mode * " | "uid" | "gid" | "nr_inodes" | "nr_blocks" | " * mpol" *

*/ private java.util.List mountOptions; /** *

* The absolute file path in the container where the tmpfs volume is mounted. *

* * @param containerPath * The absolute file path in the container where the tmpfs volume is mounted. */ public void setContainerPath(String containerPath) { this.containerPath = containerPath; } /** *

* The absolute file path in the container where the tmpfs volume is mounted. *

* * @return The absolute file path in the container where the tmpfs volume is mounted. */ public String getContainerPath() { return this.containerPath; } /** *

* The absolute file path in the container where the tmpfs volume is mounted. *

* * @param containerPath * The absolute file path in the container where the tmpfs volume is mounted. * @return Returns a reference to this object so that method calls can be chained together. */ public Tmpfs withContainerPath(String containerPath) { setContainerPath(containerPath); return this; } /** *

* The size (in MiB) of the tmpfs volume. *

* * @param size * The size (in MiB) of the tmpfs volume. */ public void setSize(Integer size) { this.size = size; } /** *

* The size (in MiB) of the tmpfs volume. *

* * @return The size (in MiB) of the tmpfs volume. */ public Integer getSize() { return this.size; } /** *

* The size (in MiB) of the tmpfs volume. *

* * @param size * The size (in MiB) of the tmpfs volume. * @return Returns a reference to this object so that method calls can be chained together. */ public Tmpfs withSize(Integer size) { setSize(size); return this; } /** *

* The list of tmpfs volume mount options. *

*

* Valid values: "defaults" | "ro" | "rw" | "suid" | " * nosuid" | "dev" | "nodev" | "exec" | "noexec * " | "sync" | "async" | "dirsync" | "remount" | " * mand" | "nomand" | "atime" | "noatime" | " * diratime" | "nodiratime" | "bind" | " * rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime * " | "norelatime" | "strictatime" | "nostrictatime" | "mode * " | "uid" | "gid" | "nr_inodes" | "nr_blocks" | " * mpol" *

* * @return The list of tmpfs volume mount options.

*

* Valid values: "defaults" | "ro" | "rw" | "suid" | " * nosuid" | "dev" | "nodev" | "exec" | " * noexec" | "sync" | "async" | "dirsync" | " * remount" | "mand" | "nomand" | "atime" | " * noatime" | "diratime" | "nodiratime" | "bind" | " * rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime * " | "norelatime" | "strictatime" | "nostrictatime" | " * mode" | "uid" | "gid" | "nr_inodes" | " * nr_blocks" | "mpol" */ public java.util.List getMountOptions() { return mountOptions; } /** *

* The list of tmpfs volume mount options. *

*

* Valid values: "defaults" | "ro" | "rw" | "suid" | " * nosuid" | "dev" | "nodev" | "exec" | "noexec * " | "sync" | "async" | "dirsync" | "remount" | " * mand" | "nomand" | "atime" | "noatime" | " * diratime" | "nodiratime" | "bind" | " * rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime * " | "norelatime" | "strictatime" | "nostrictatime" | "mode * " | "uid" | "gid" | "nr_inodes" | "nr_blocks" | " * mpol" *

* * @param mountOptions * The list of tmpfs volume mount options.

*

* Valid values: "defaults" | "ro" | "rw" | "suid" | " * nosuid" | "dev" | "nodev" | "exec" | " * noexec" | "sync" | "async" | "dirsync" | " * remount" | "mand" | "nomand" | "atime" | " * noatime" | "diratime" | "nodiratime" | "bind" | " * rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime * " | "norelatime" | "strictatime" | "nostrictatime" | " * mode" | "uid" | "gid" | "nr_inodes" | " * nr_blocks" | "mpol" */ public void setMountOptions(java.util.Collection mountOptions) { if (mountOptions == null) { this.mountOptions = null; return; } this.mountOptions = new java.util.ArrayList(mountOptions); } /** *

* The list of tmpfs volume mount options. *

*

* Valid values: "defaults" | "ro" | "rw" | "suid" | " * nosuid" | "dev" | "nodev" | "exec" | "noexec * " | "sync" | "async" | "dirsync" | "remount" | " * mand" | "nomand" | "atime" | "noatime" | " * diratime" | "nodiratime" | "bind" | " * rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime * " | "norelatime" | "strictatime" | "nostrictatime" | "mode * " | "uid" | "gid" | "nr_inodes" | "nr_blocks" | " * mpol" *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setMountOptions(java.util.Collection)} or {@link #withMountOptions(java.util.Collection)} if you want to * override the existing values. *

* * @param mountOptions * The list of tmpfs volume mount options.

*

* Valid values: "defaults" | "ro" | "rw" | "suid" | " * nosuid" | "dev" | "nodev" | "exec" | " * noexec" | "sync" | "async" | "dirsync" | " * remount" | "mand" | "nomand" | "atime" | " * noatime" | "diratime" | "nodiratime" | "bind" | " * rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime * " | "norelatime" | "strictatime" | "nostrictatime" | " * mode" | "uid" | "gid" | "nr_inodes" | " * nr_blocks" | "mpol" * @return Returns a reference to this object so that method calls can be chained together. */ public Tmpfs withMountOptions(String... mountOptions) { if (this.mountOptions == null) { setMountOptions(new java.util.ArrayList(mountOptions.length)); } for (String ele : mountOptions) { this.mountOptions.add(ele); } return this; } /** *

* The list of tmpfs volume mount options. *

*

* Valid values: "defaults" | "ro" | "rw" | "suid" | " * nosuid" | "dev" | "nodev" | "exec" | "noexec * " | "sync" | "async" | "dirsync" | "remount" | " * mand" | "nomand" | "atime" | "noatime" | " * diratime" | "nodiratime" | "bind" | " * rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime * " | "norelatime" | "strictatime" | "nostrictatime" | "mode * " | "uid" | "gid" | "nr_inodes" | "nr_blocks" | " * mpol" *

* * @param mountOptions * The list of tmpfs volume mount options.

*

* Valid values: "defaults" | "ro" | "rw" | "suid" | " * nosuid" | "dev" | "nodev" | "exec" | " * noexec" | "sync" | "async" | "dirsync" | " * remount" | "mand" | "nomand" | "atime" | " * noatime" | "diratime" | "nodiratime" | "bind" | " * rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime * " | "norelatime" | "strictatime" | "nostrictatime" | " * mode" | "uid" | "gid" | "nr_inodes" | " * nr_blocks" | "mpol" * @return Returns a reference to this object so that method calls can be chained together. */ public Tmpfs withMountOptions(java.util.Collection mountOptions) { setMountOptions(mountOptions); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getContainerPath() != null) sb.append("ContainerPath: ").append(getContainerPath()).append(","); if (getSize() != null) sb.append("Size: ").append(getSize()).append(","); if (getMountOptions() != null) sb.append("MountOptions: ").append(getMountOptions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Tmpfs == false) return false; Tmpfs other = (Tmpfs) obj; if (other.getContainerPath() == null ^ this.getContainerPath() == null) return false; if (other.getContainerPath() != null && other.getContainerPath().equals(this.getContainerPath()) == false) return false; if (other.getSize() == null ^ this.getSize() == null) return false; if (other.getSize() != null && other.getSize().equals(this.getSize()) == false) return false; if (other.getMountOptions() == null ^ this.getMountOptions() == null) return false; if (other.getMountOptions() != null && other.getMountOptions().equals(this.getMountOptions()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContainerPath() == null) ? 0 : getContainerPath().hashCode()); hashCode = prime * hashCode + ((getSize() == null) ? 0 : getSize().hashCode()); hashCode = prime * hashCode + ((getMountOptions() == null) ? 0 : getMountOptions().hashCode()); return hashCode; } @Override public Tmpfs clone() { try { return (Tmpfs) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.batch.model.transform.TmpfsMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy