@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HomeDirectoryMapEntry extends Object implements Serializable, Cloneable, StructuredPojo
Represents an object that contains entries and targets for HomeDirectoryMappings
.
The following is an Entry
and Target
pair example for chroot
.
[ { "Entry:": "/", "Target": "/bucket_name/home/mydirectory" } ]
If the target of a logical directory entry does not exist in Amazon S3 or EFS, the entry is ignored. As a workaround,
you can use the Amazon S3 API or EFS API to create 0 byte objects as place holders for your directory. If using the
CLI, use the s3api
or efsapi
call instead of s3
or efs
so you can
use the put-object operation. For example, you use the following:
aws s3api put-object --bucket bucketname --key path/to/folder/
. Make sure that the end of the key name
ends in a /
for it to be considered a folder.
Constructor and Description |
---|
HomeDirectoryMapEntry() |
Modifier and Type | Method and Description |
---|---|
HomeDirectoryMapEntry |
clone() |
boolean |
equals(Object obj) |
String |
getEntry()
Represents an entry for
HomeDirectoryMappings . |
String |
getTarget()
Represents the map target that is used in a
HomeDirectorymapEntry . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEntry(String entry)
Represents an entry for
HomeDirectoryMappings . |
void |
setTarget(String target)
Represents the map target that is used in a
HomeDirectorymapEntry . |
String |
toString()
Returns a string representation of this object.
|
HomeDirectoryMapEntry |
withEntry(String entry)
Represents an entry for
HomeDirectoryMappings . |
HomeDirectoryMapEntry |
withTarget(String target)
Represents the map target that is used in a
HomeDirectorymapEntry . |
public void setEntry(String entry)
Represents an entry for HomeDirectoryMappings
.
entry
- Represents an entry for HomeDirectoryMappings
.public String getEntry()
Represents an entry for HomeDirectoryMappings
.
HomeDirectoryMappings
.public HomeDirectoryMapEntry withEntry(String entry)
Represents an entry for HomeDirectoryMappings
.
entry
- Represents an entry for HomeDirectoryMappings
.public void setTarget(String target)
Represents the map target that is used in a HomeDirectorymapEntry
.
target
- Represents the map target that is used in a HomeDirectorymapEntry
.public String getTarget()
Represents the map target that is used in a HomeDirectorymapEntry
.
HomeDirectorymapEntry
.public HomeDirectoryMapEntry withTarget(String target)
Represents the map target that is used in a HomeDirectorymapEntry
.
target
- Represents the map target that is used in a HomeDirectorymapEntry
.public String toString()
toString
in class Object
Object.toString()
public HomeDirectoryMapEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.