@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreationInfo extends Object implements Serializable, Cloneable, StructuredPojo
Required if the RootDirectory
> Path
specified does not exist. Specifies the POSIX IDs
and permissions to apply to the access point's RootDirectory
> Path
. If the access point
root directory does not exist, EFS creates it with these settings when a client connects to the access point. When
specifying CreationInfo
, you must include values for all properties.
Amazon EFS creates a root directory only if you have provided the CreationInfo: OwnUid, OwnGID, and permissions for the directory. If you do not provide this information, Amazon EFS does not create the root directory. If the root directory does not exist, attempts to mount using the access point will fail.
If you do not provide CreationInfo
and the specified RootDirectory
does not exist, attempts
to mount the file system using the access point will fail.
Constructor and Description |
---|
CreationInfo() |
Modifier and Type | Method and Description |
---|---|
CreationInfo |
clone() |
boolean |
equals(Object obj) |
Long |
getOwnerGid()
Specifies the POSIX group ID to apply to the
RootDirectory . |
Long |
getOwnerUid()
Specifies the POSIX user ID to apply to the
RootDirectory . |
String |
getPermissions()
Specifies the POSIX permissions to apply to the
RootDirectory , in the format of an octal number
representing the file's mode bits. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setOwnerGid(Long ownerGid)
Specifies the POSIX group ID to apply to the
RootDirectory . |
void |
setOwnerUid(Long ownerUid)
Specifies the POSIX user ID to apply to the
RootDirectory . |
void |
setPermissions(String permissions)
Specifies the POSIX permissions to apply to the
RootDirectory , in the format of an octal number
representing the file's mode bits. |
String |
toString()
Returns a string representation of this object.
|
CreationInfo |
withOwnerGid(Long ownerGid)
Specifies the POSIX group ID to apply to the
RootDirectory . |
CreationInfo |
withOwnerUid(Long ownerUid)
Specifies the POSIX user ID to apply to the
RootDirectory . |
CreationInfo |
withPermissions(String permissions)
Specifies the POSIX permissions to apply to the
RootDirectory , in the format of an octal number
representing the file's mode bits. |
public void setOwnerUid(Long ownerUid)
Specifies the POSIX user ID to apply to the RootDirectory
. Accepts values from 0 to 2^32
(4294967295).
ownerUid
- Specifies the POSIX user ID to apply to the RootDirectory
. Accepts values from 0 to 2^32
(4294967295).public Long getOwnerUid()
Specifies the POSIX user ID to apply to the RootDirectory
. Accepts values from 0 to 2^32
(4294967295).
RootDirectory
. Accepts values from 0 to 2^32
(4294967295).public CreationInfo withOwnerUid(Long ownerUid)
Specifies the POSIX user ID to apply to the RootDirectory
. Accepts values from 0 to 2^32
(4294967295).
ownerUid
- Specifies the POSIX user ID to apply to the RootDirectory
. Accepts values from 0 to 2^32
(4294967295).public void setOwnerGid(Long ownerGid)
Specifies the POSIX group ID to apply to the RootDirectory
. Accepts values from 0 to 2^32
(4294967295).
ownerGid
- Specifies the POSIX group ID to apply to the RootDirectory
. Accepts values from 0 to 2^32
(4294967295).public Long getOwnerGid()
Specifies the POSIX group ID to apply to the RootDirectory
. Accepts values from 0 to 2^32
(4294967295).
RootDirectory
. Accepts values from 0 to 2^32
(4294967295).public CreationInfo withOwnerGid(Long ownerGid)
Specifies the POSIX group ID to apply to the RootDirectory
. Accepts values from 0 to 2^32
(4294967295).
ownerGid
- Specifies the POSIX group ID to apply to the RootDirectory
. Accepts values from 0 to 2^32
(4294967295).public void setPermissions(String permissions)
Specifies the POSIX permissions to apply to the RootDirectory
, in the format of an octal number
representing the file's mode bits.
permissions
- Specifies the POSIX permissions to apply to the RootDirectory
, in the format of an octal
number representing the file's mode bits.public String getPermissions()
Specifies the POSIX permissions to apply to the RootDirectory
, in the format of an octal number
representing the file's mode bits.
RootDirectory
, in the format of an octal
number representing the file's mode bits.public CreationInfo withPermissions(String permissions)
Specifies the POSIX permissions to apply to the RootDirectory
, in the format of an octal number
representing the file's mode bits.
permissions
- Specifies the POSIX permissions to apply to the RootDirectory
, in the format of an octal
number representing the file's mode bits.public String toString()
toString
in class Object
Object.toString()
public CreationInfo clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.