/* * Copyright 2018-2023 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; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The full POSIX identity, including the user ID, group ID, and any secondary group IDs, on the access point that is * used for all file system operations performed by NFS clients using the access point. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PosixUser implements Serializable, Cloneable, StructuredPojo { /** ** The POSIX user ID used for all file system operations using this access point. *
*/ private Long uid; /** ** The POSIX group ID used for all file system operations using this access point. *
*/ private Long gid; /** ** Secondary POSIX group IDs used for all file system operations using this access point. *
*/ private com.amazonaws.internal.SdkInternalList* The POSIX user ID used for all file system operations using this access point. *
* * @param uid * The POSIX user ID used for all file system operations using this access point. */ public void setUid(Long uid) { this.uid = uid; } /** ** The POSIX user ID used for all file system operations using this access point. *
* * @return The POSIX user ID used for all file system operations using this access point. */ public Long getUid() { return this.uid; } /** ** The POSIX user ID used for all file system operations using this access point. *
* * @param uid * The POSIX user ID used for all file system operations using this access point. * @return Returns a reference to this object so that method calls can be chained together. */ public PosixUser withUid(Long uid) { setUid(uid); return this; } /** ** The POSIX group ID used for all file system operations using this access point. *
* * @param gid * The POSIX group ID used for all file system operations using this access point. */ public void setGid(Long gid) { this.gid = gid; } /** ** The POSIX group ID used for all file system operations using this access point. *
* * @return The POSIX group ID used for all file system operations using this access point. */ public Long getGid() { return this.gid; } /** ** The POSIX group ID used for all file system operations using this access point. *
* * @param gid * The POSIX group ID used for all file system operations using this access point. * @return Returns a reference to this object so that method calls can be chained together. */ public PosixUser withGid(Long gid) { setGid(gid); return this; } /** ** Secondary POSIX group IDs used for all file system operations using this access point. *
* * @return Secondary POSIX group IDs used for all file system operations using this access point. */ public java.util.List* Secondary POSIX group IDs used for all file system operations using this access point. *
* * @param secondaryGids * Secondary POSIX group IDs used for all file system operations using this access point. */ public void setSecondaryGids(java.util.Collection* Secondary POSIX group IDs used for all file system operations using this access point. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecondaryGids(java.util.Collection)} or {@link #withSecondaryGids(java.util.Collection)} if you want * to override the existing values. *
* * @param secondaryGids * Secondary POSIX group IDs used for all file system operations using this access point. * @return Returns a reference to this object so that method calls can be chained together. */ public PosixUser withSecondaryGids(Long... secondaryGids) { if (this.secondaryGids == null) { setSecondaryGids(new com.amazonaws.internal.SdkInternalList* Secondary POSIX group IDs used for all file system operations using this access point. *
* * @param secondaryGids * Secondary POSIX group IDs used for all file system operations using this access point. * @return Returns a reference to this object so that method calls can be chained together. */ public PosixUser withSecondaryGids(java.util.Collection