@Generated(value="software.amazon.awssdk:codegen") public final class CreateAgentRequest extends DataSyncRequest implements ToCopyableBuilder<CreateAgentRequest.Builder,CreateAgentRequest>
CreateAgentRequest
Modifier and Type | Class and Description |
---|---|
static interface |
CreateAgentRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
activationKey()
Your agent activation key.
|
String |
agentName()
The name you configured for your agent.
|
static CreateAgentRequest.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() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateAgentRequest.Builder> |
serializableBuilderClass() |
List<TagListEntry> |
tags()
The key-value pair that represents the tag you want to associate with the agent.
|
CreateAgentRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String activationKey()
Your agent activation key. You can get the activation key either by sending an HTTP GET request with redirects that enable you to get the agent IP address (port 80). Alternatively, you can get it from the AWS DataSync console.
The redirect URL returned in the response provides you the activation key for your agent in the query string
parameter activationKey
. It might also include other activation-related parameters; however, these
are merely defaults. The arguments you pass to this API call determine the actual configuration of your agent.
For more information, see Activating a Sync Agent in the AWS DataSync User Guide.
The redirect URL returned in the response provides you the activation key for your agent in the query
string parameter activationKey
. It might also include other activation-related parameters;
however, these are merely defaults. The arguments you pass to this API call determine the actual
configuration of your agent. For more information, see Activating a Sync Agent in the AWS DataSync User Guide.
public String agentName()
The name you configured for your agent. This value is a text reference that is used to identify the agent in the console.
public List<TagListEntry> tags()
The key-value pair that represents the tag you want to associate with the agent. The value can be an empty string. This value helps you manage, filter, and search for your agents.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @.
public CreateAgentRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateAgentRequest.Builder,CreateAgentRequest>
toBuilder
in class DataSyncRequest
public static CreateAgentRequest.Builder builder()
public static Class<? extends CreateAgentRequest.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.