/* * 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.transfer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The full POSIX identity, including user ID (Uid
), group ID (Gid
), and any secondary groups
* IDs (SecondaryGids
), that controls your users' access to your Amazon EFS file systems. The POSIX
* permissions that are set on files and directories in your file system determine the level of access your users get
* when transferring files into and out of your Amazon EFS file systems.
*
* The POSIX user ID used for all EFS operations by this user. *
*/ private Long uid; /** ** The POSIX group ID used for all EFS operations by this user. *
*/ private Long gid; /** ** The secondary POSIX group IDs used for all EFS operations by this user. *
*/ private java.util.List* The POSIX user ID used for all EFS operations by this user. *
* * @param uid * The POSIX user ID used for all EFS operations by this user. */ public void setUid(Long uid) { this.uid = uid; } /** ** The POSIX user ID used for all EFS operations by this user. *
* * @return The POSIX user ID used for all EFS operations by this user. */ public Long getUid() { return this.uid; } /** ** The POSIX user ID used for all EFS operations by this user. *
* * @param uid * The POSIX user ID used for all EFS operations by this user. * @return Returns a reference to this object so that method calls can be chained together. */ public PosixProfile withUid(Long uid) { setUid(uid); return this; } /** ** The POSIX group ID used for all EFS operations by this user. *
* * @param gid * The POSIX group ID used for all EFS operations by this user. */ public void setGid(Long gid) { this.gid = gid; } /** ** The POSIX group ID used for all EFS operations by this user. *
* * @return The POSIX group ID used for all EFS operations by this user. */ public Long getGid() { return this.gid; } /** ** The POSIX group ID used for all EFS operations by this user. *
* * @param gid * The POSIX group ID used for all EFS operations by this user. * @return Returns a reference to this object so that method calls can be chained together. */ public PosixProfile withGid(Long gid) { setGid(gid); return this; } /** ** The secondary POSIX group IDs used for all EFS operations by this user. *
* * @return The secondary POSIX group IDs used for all EFS operations by this user. */ public java.util.List* The secondary POSIX group IDs used for all EFS operations by this user. *
* * @param secondaryGids * The secondary POSIX group IDs used for all EFS operations by this user. */ public void setSecondaryGids(java.util.Collection* The secondary POSIX group IDs used for all EFS operations by this user. *
** 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 * The secondary POSIX group IDs used for all EFS operations by this user. * @return Returns a reference to this object so that method calls can be chained together. */ public PosixProfile withSecondaryGids(Long... secondaryGids) { if (this.secondaryGids == null) { setSecondaryGids(new java.util.ArrayList* The secondary POSIX group IDs used for all EFS operations by this user. *
* * @param secondaryGids * The secondary POSIX group IDs used for all EFS operations by this user. * @return Returns a reference to this object so that method calls can be chained together. */ public PosixProfile withSecondaryGids(java.util.Collection