@Generated(value="software.amazon.awssdk:codegen") public final class GetTaskTemplateResponse extends ConnectResponse implements ToCopyableBuilder<GetTaskTemplateResponse.Builder,GetTaskTemplateResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetTaskTemplateResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN).
|
static GetTaskTemplateResponse.Builder |
builder() |
TaskTemplateConstraints |
constraints()
Constraints that are applicable to the fields listed.
|
String |
contactFlowId()
The identifier of the flow that runs by default when a task is created by referencing this template.
|
Instant |
createdTime()
The timestamp when the task template was created.
|
TaskTemplateDefaults |
defaults()
The default values for fields when a task is created by referencing this template.
|
String |
description()
The description of the task template.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<TaskTemplateField> |
fields()
Fields that are part of the template.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasFields()
For responses, this returns true if the service returned a value for the Fields property.
|
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
String |
id()
A unique identifier for the task template.
|
String |
instanceId()
The identifier of the Amazon Connect instance.
|
Instant |
lastModifiedTime()
The timestamp when the task template was last modified.
|
String |
name()
The name of the task template.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetTaskTemplateResponse.Builder> |
serializableBuilderClass() |
TaskTemplateStatus |
status()
Marks a template as
ACTIVE or INACTIVE for a task to refer to it. |
String |
statusAsString()
Marks a template as
ACTIVE or INACTIVE for a task to refer to it. |
Map<String,String> |
tags()
The tags used to organize, track, or control access for this resource.
|
GetTaskTemplateResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String instanceId()
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
public final String id()
A unique identifier for the task template.
public final String arn()
The Amazon Resource Name (ARN).
public final String name()
The name of the task template.
public final String description()
The description of the task template.
public final String contactFlowId()
The identifier of the flow that runs by default when a task is created by referencing this template.
public final TaskTemplateConstraints constraints()
Constraints that are applicable to the fields listed.
public final TaskTemplateDefaults defaults()
The default values for fields when a task is created by referencing this template.
public final boolean hasFields()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<TaskTemplateField> fields()
Fields that are part of the template.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFields() method.
public final TaskTemplateStatus status()
Marks a template as ACTIVE or INACTIVE for a task to refer to it. Tasks can only be
created from ACTIVE templates. If a template is marked as INACTIVE, then a task that
refers to this template cannot be created.
If the service returns an enum value that is not available in the current SDK version, status will
return TaskTemplateStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
ACTIVE or INACTIVE for a task to refer to it. Tasks can
only be created from ACTIVE templates. If a template is marked as INACTIVE,
then a task that refers to this template cannot be created.TaskTemplateStatuspublic final String statusAsString()
Marks a template as ACTIVE or INACTIVE for a task to refer to it. Tasks can only be
created from ACTIVE templates. If a template is marked as INACTIVE, then a task that
refers to this template cannot be created.
If the service returns an enum value that is not available in the current SDK version, status will
return TaskTemplateStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
ACTIVE or INACTIVE for a task to refer to it. Tasks can
only be created from ACTIVE templates. If a template is marked as INACTIVE,
then a task that refers to this template cannot be created.TaskTemplateStatuspublic final Instant lastModifiedTime()
The timestamp when the task template was last modified.
public final Instant createdTime()
The timestamp when the task template was created.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final Map<String,String> tags()
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public GetTaskTemplateResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetTaskTemplateResponse.Builder,GetTaskTemplateResponse>toBuilder in class AwsResponsepublic static GetTaskTemplateResponse.Builder builder()
public static Class<? extends GetTaskTemplateResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2022. All rights reserved.