@Generated(value="software.amazon.awssdk:codegen") public final class UpdateUserRequest extends TransferRequest implements ToCopyableBuilder<UpdateUserRequest.Builder,UpdateUserRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
UpdateUserRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static UpdateUserRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
homeDirectory()
The HomeDirectory parameter specifies the landing directory (folder) for a user when they log in to the server
using their client.
|
String |
policy()
Allows you to supply a scope-down policy for your user so you can use the same AWS Identity and Access Management
(IAM) role across multiple users.
|
String |
role()
The IAM role that controls your user’s access to your Amazon S3 bucket.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UpdateUserRequest.Builder> |
serializableBuilderClass() |
String |
serverId()
A system-assigned unique identifier for an SFTP server instance that the user account is assigned to.
|
UpdateUserRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
userName()
A unique string that identifies a user and is associated with a server as specified by the ServerId.
|
overrideConfiguration
copy
public String homeDirectory()
The HomeDirectory parameter specifies the landing directory (folder) for a user when they log in to the server
using their client. An example would be: /home/username
.
/home/username
.public String policy()
Allows you to supply a scope-down policy for your user so you can use the same AWS Identity and Access Management
(IAM) role across multiple users. The policy scopes down users access to portions of your Amazon S3 bucket.
Variables you can use inside this policy include ${Transfer:UserName}
,
${Transfer:HomeDirectory}
, and ${Transfer:HomeBucket}
.
${Transfer:UserName}
,
${Transfer:HomeDirectory}
, and ${Transfer:HomeBucket}
.public String role()
The IAM role that controls your user’s access to your Amazon S3 bucket. The policies attached to this role will determine the level of access you want to provide your users when transferring files into and out of your Amazon S3 bucket or buckets. The IAM role should also contain a trust relationship that allows the Secure File Transfer Protocol (SFTP) server to access your resources when servicing your SFTP user’s transfer requests.
public String serverId()
A system-assigned unique identifier for an SFTP server instance that the user account is assigned to.
public String userName()
A unique string that identifies a user and is associated with a server as specified by the ServerId. This is the string that will be used by your user when they log in to your SFTP server.
public UpdateUserRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<UpdateUserRequest.Builder,UpdateUserRequest>
toBuilder
in class TransferRequest
public static UpdateUserRequest.Builder builder()
public static Class<? extends UpdateUserRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.