software.amazon.awssdk.services.swf.model.StartChildWorkflowExecutionDecisionAttributes Maven / Gradle / Ivy
Show all versions of swf Show documentation
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.swf.model;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.ListTrait;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
import software.amazon.awssdk.core.util.SdkAutoConstructList;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*
* Provides the details of the StartChildWorkflowExecution
decision.
*
*
* Access Control
*
*
* You can use IAM policies to control this decision's access to Amazon SWF resources as follows:
*
*
* -
*
* Use a Resource
element with the domain name to limit the action to only specified domains.
*
*
* -
*
* Use an Action
element to allow or deny permission to call this action.
*
*
* -
*
* Constrain the following parameters by using a Condition
element with the appropriate keys.
*
*
* -
*
* tagList.member.N
– The key is "swf:tagList.N" where N is the tag number from 0 to 4, inclusive.
*
*
* -
*
* taskList
– String constraint. The key is swf:taskList.name
.
*
*
* -
*
* workflowType.name
– String constraint. The key is swf:workflowType.name
.
*
*
* -
*
* workflowType.version
– String constraint. The key is swf:workflowType.version
.
*
*
*
*
*
*
* If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the
* specified constraints, the action fails. The associated event attribute's cause
parameter is set to
* OPERATION_NOT_PERMITTED
. For details and example IAM policies, see Using IAM to Manage Access to
* Amazon SWF Workflows in the Amazon SWF Developer Guide.
*
*/
@Generated("software.amazon.awssdk:codegen")
public final class StartChildWorkflowExecutionDecisionAttributes implements SdkPojo, Serializable,
ToCopyableBuilder {
private static final SdkField WORKFLOW_TYPE_FIELD = SdkField. builder(MarshallingType.SDK_POJO)
.memberName("workflowType").getter(getter(StartChildWorkflowExecutionDecisionAttributes::workflowType))
.setter(setter(Builder::workflowType)).constructor(WorkflowType::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("workflowType").build()).build();
private static final SdkField WORKFLOW_ID_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("workflowId").getter(getter(StartChildWorkflowExecutionDecisionAttributes::workflowId))
.setter(setter(Builder::workflowId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("workflowId").build()).build();
private static final SdkField CONTROL_FIELD = SdkField. builder(MarshallingType.STRING).memberName("control")
.getter(getter(StartChildWorkflowExecutionDecisionAttributes::control)).setter(setter(Builder::control))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("control").build()).build();
private static final SdkField INPUT_FIELD = SdkField. builder(MarshallingType.STRING).memberName("input")
.getter(getter(StartChildWorkflowExecutionDecisionAttributes::input)).setter(setter(Builder::input))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("input").build()).build();
private static final SdkField EXECUTION_START_TO_CLOSE_TIMEOUT_FIELD = SdkField
. builder(MarshallingType.STRING)
.memberName("executionStartToCloseTimeout")
.getter(getter(StartChildWorkflowExecutionDecisionAttributes::executionStartToCloseTimeout))
.setter(setter(Builder::executionStartToCloseTimeout))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("executionStartToCloseTimeout")
.build()).build();
private static final SdkField TASK_LIST_FIELD = SdkField. builder(MarshallingType.SDK_POJO)
.memberName("taskList").getter(getter(StartChildWorkflowExecutionDecisionAttributes::taskList))
.setter(setter(Builder::taskList)).constructor(TaskList::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("taskList").build()).build();
private static final SdkField TASK_PRIORITY_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("taskPriority").getter(getter(StartChildWorkflowExecutionDecisionAttributes::taskPriority))
.setter(setter(Builder::taskPriority))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("taskPriority").build()).build();
private static final SdkField TASK_START_TO_CLOSE_TIMEOUT_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("taskStartToCloseTimeout")
.getter(getter(StartChildWorkflowExecutionDecisionAttributes::taskStartToCloseTimeout))
.setter(setter(Builder::taskStartToCloseTimeout))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("taskStartToCloseTimeout").build())
.build();
private static final SdkField CHILD_POLICY_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("childPolicy").getter(getter(StartChildWorkflowExecutionDecisionAttributes::childPolicyAsString))
.setter(setter(Builder::childPolicy))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("childPolicy").build()).build();
private static final SdkField> TAG_LIST_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("tagList")
.getter(getter(StartChildWorkflowExecutionDecisionAttributes::tagList))
.setter(setter(Builder::tagList))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("tagList").build(),
ListTrait
.builder()
.memberLocationName(null)
.memberFieldInfo(
SdkField. builder(MarshallingType.STRING)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("member").build()).build()).build()).build();
private static final SdkField LAMBDA_ROLE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("lambdaRole").getter(getter(StartChildWorkflowExecutionDecisionAttributes::lambdaRole))
.setter(setter(Builder::lambdaRole))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("lambdaRole").build()).build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(WORKFLOW_TYPE_FIELD,
WORKFLOW_ID_FIELD, CONTROL_FIELD, INPUT_FIELD, EXECUTION_START_TO_CLOSE_TIMEOUT_FIELD, TASK_LIST_FIELD,
TASK_PRIORITY_FIELD, TASK_START_TO_CLOSE_TIMEOUT_FIELD, CHILD_POLICY_FIELD, TAG_LIST_FIELD, LAMBDA_ROLE_FIELD));
private static final Map> SDK_NAME_TO_FIELD = Collections
.unmodifiableMap(new HashMap>() {
{
put("workflowType", WORKFLOW_TYPE_FIELD);
put("workflowId", WORKFLOW_ID_FIELD);
put("control", CONTROL_FIELD);
put("input", INPUT_FIELD);
put("executionStartToCloseTimeout", EXECUTION_START_TO_CLOSE_TIMEOUT_FIELD);
put("taskList", TASK_LIST_FIELD);
put("taskPriority", TASK_PRIORITY_FIELD);
put("taskStartToCloseTimeout", TASK_START_TO_CLOSE_TIMEOUT_FIELD);
put("childPolicy", CHILD_POLICY_FIELD);
put("tagList", TAG_LIST_FIELD);
put("lambdaRole", LAMBDA_ROLE_FIELD);
}
});
private static final long serialVersionUID = 1L;
private final WorkflowType workflowType;
private final String workflowId;
private final String control;
private final String input;
private final String executionStartToCloseTimeout;
private final TaskList taskList;
private final String taskPriority;
private final String taskStartToCloseTimeout;
private final String childPolicy;
private final List tagList;
private final String lambdaRole;
private StartChildWorkflowExecutionDecisionAttributes(BuilderImpl builder) {
this.workflowType = builder.workflowType;
this.workflowId = builder.workflowId;
this.control = builder.control;
this.input = builder.input;
this.executionStartToCloseTimeout = builder.executionStartToCloseTimeout;
this.taskList = builder.taskList;
this.taskPriority = builder.taskPriority;
this.taskStartToCloseTimeout = builder.taskStartToCloseTimeout;
this.childPolicy = builder.childPolicy;
this.tagList = builder.tagList;
this.lambdaRole = builder.lambdaRole;
}
/**
*
* The type of the workflow execution to be started.
*
*
* @return The type of the workflow execution to be started.
*/
public final WorkflowType workflowType() {
return workflowType;
}
/**
*
* The workflowId
of the workflow execution.
*
*
* The specified string must not contain a :
(colon), /
(slash), |
(vertical
* bar), or any control characters (\u0000-\u001f
| \u007f-\u009f
). Also, it must
* not be the literal string arn
.
*
*
* @return The workflowId
of the workflow execution.
*
* The specified string must not contain a :
(colon), /
(slash), |
* (vertical bar), or any control characters (\u0000-\u001f
| \u007f-\u009f
).
* Also, it must not be the literal string arn
.
*/
public final String workflowId() {
return workflowId;
}
/**
*
* The data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't sent
* to the child workflow execution.
*
*
* @return The data attached to the event that can be used by the decider in subsequent workflow tasks. This data
* isn't sent to the child workflow execution.
*/
public final String control() {
return control;
}
/**
*
* The input to be provided to the workflow execution.
*
*
* @return The input to be provided to the workflow execution.
*/
public final String input() {
return input;
}
/**
*
* The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout specified
* when registering the workflow type.
*
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
*
*
*
* An execution start-to-close timeout for this workflow execution must be specified either as a default for the
* workflow type or through this parameter. If neither this parameter is set nor a default execution start-to-close
* timeout was specified at registration time then a fault is returned.
*
*
*
* @return The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout
* specified when registering the workflow type.
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
*
*
*
* An execution start-to-close timeout for this workflow execution must be specified either as a default for
* the workflow type or through this parameter. If neither this parameter is set nor a default execution
* start-to-close timeout was specified at registration time then a fault is returned.
*
*/
public final String executionStartToCloseTimeout() {
return executionStartToCloseTimeout;
}
/**
*
* The name of the task list to be used for decision tasks of the child workflow execution.
*
*
*
* A task list for this workflow execution must be specified either as a default for the workflow type or through
* this parameter. If neither this parameter is set nor a default task list was specified at registration time then
* a fault is returned.
*
*
*
* The specified string must not start or end with whitespace. It must not contain a :
(colon),
* /
(slash), |
(vertical bar), or any control characters (\u0000-\u001f
|
* \u007f-\u009f
). Also, it must not be the literal string arn
.
*
*
* @return The name of the task list to be used for decision tasks of the child workflow execution.
*
* A task list for this workflow execution must be specified either as a default for the workflow type or
* through this parameter. If neither this parameter is set nor a default task list was specified at
* registration time then a fault is returned.
*
*
*
* The specified string must not start or end with whitespace. It must not contain a :
(colon),
* /
(slash), |
(vertical bar), or any control characters (
* \u0000-\u001f
| \u007f-\u009f
). Also, it must not be the literal string
* arn
.
*/
public final TaskList taskList() {
return taskList;
}
/**
*
* A task priority that, if set, specifies the priority for a decision task of this workflow execution. This
* overrides the defaultTaskPriority specified when registering the workflow type. Valid values are integers that
* range from Java's Integer.MIN_VALUE
(-2147483648) to Integer.MAX_VALUE
(2147483647).
* Higher numbers indicate higher priority.
*
*
* For more information about setting task priority, see Setting Task
* Priority in the Amazon SWF Developer Guide.
*
*
* @return A task priority that, if set, specifies the priority for a decision task of this workflow execution. This
* overrides the defaultTaskPriority specified when registering the workflow type. Valid values are integers
* that range from Java's Integer.MIN_VALUE
(-2147483648) to Integer.MAX_VALUE
* (2147483647). Higher numbers indicate higher priority.
*
* For more information about setting task priority, see Setting Task
* Priority in the Amazon SWF Developer Guide.
*/
public final String taskPriority() {
return taskPriority;
}
/**
*
* Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the
* defaultTaskStartToCloseTimout
specified when registering the workflow type using
* RegisterWorkflowType.
*
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
*
*
*
* A task start-to-close timeout for this workflow execution must be specified either as a default for the workflow
* type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was
* specified at registration time then a fault is returned.
*
*
*
* @return Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides
* the defaultTaskStartToCloseTimout
specified when registering the workflow type using
* RegisterWorkflowType.
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
*
*
*
* A task start-to-close timeout for this workflow execution must be specified either as a default for the
* workflow type or through this parameter. If neither this parameter is set nor a default task
* start-to-close timeout was specified at registration time then a fault is returned.
*
*/
public final String taskStartToCloseTimeout() {
return taskStartToCloseTimeout;
}
/**
*
* If set, specifies the policy to use for the child workflow executions if the workflow execution being started is
* terminated by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. This
* policy overrides the default child policy specified when registering the workflow type using
* RegisterWorkflowType.
*
*
* The supported child policies are:
*
*
* -
*
* TERMINATE
– The child executions are terminated.
*
*
* -
*
* REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
* WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate
* actions when it receives an execution history with this event.
*
*
* -
*
* ABANDON
– No action is taken. The child executions continue to run.
*
*
*
*
*
* A child policy for this workflow execution must be specified either as a default for the workflow type or through
* this parameter. If neither this parameter is set nor a default child policy was specified at registration time
* then a fault is returned.
*
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #childPolicy} will
* return {@link ChildPolicy#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #childPolicyAsString}.
*
*
* @return If set, specifies the policy to use for the child workflow executions if the workflow execution being
* started is terminated by calling the TerminateWorkflowExecution action explicitly or due to an
* expired timeout. This policy overrides the default child policy specified when registering the workflow
* type using RegisterWorkflowType.
*
* The supported child policies are:
*
*
* -
*
* TERMINATE
– The child executions are terminated.
*
*
* -
*
* REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
* WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take
* appropriate actions when it receives an execution history with this event.
*
*
* -
*
* ABANDON
– No action is taken. The child executions continue to run.
*
*
*
*
*
* A child policy for this workflow execution must be specified either as a default for the workflow type or
* through this parameter. If neither this parameter is set nor a default child policy was specified at
* registration time then a fault is returned.
*
* @see ChildPolicy
*/
public final ChildPolicy childPolicy() {
return ChildPolicy.fromValue(childPolicy);
}
/**
*
* If set, specifies the policy to use for the child workflow executions if the workflow execution being started is
* terminated by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. This
* policy overrides the default child policy specified when registering the workflow type using
* RegisterWorkflowType.
*
*
* The supported child policies are:
*
*
* -
*
* TERMINATE
– The child executions are terminated.
*
*
* -
*
* REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
* WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate
* actions when it receives an execution history with this event.
*
*
* -
*
* ABANDON
– No action is taken. The child executions continue to run.
*
*
*
*
*
* A child policy for this workflow execution must be specified either as a default for the workflow type or through
* this parameter. If neither this parameter is set nor a default child policy was specified at registration time
* then a fault is returned.
*
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #childPolicy} will
* return {@link ChildPolicy#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #childPolicyAsString}.
*
*
* @return If set, specifies the policy to use for the child workflow executions if the workflow execution being
* started is terminated by calling the TerminateWorkflowExecution action explicitly or due to an
* expired timeout. This policy overrides the default child policy specified when registering the workflow
* type using RegisterWorkflowType.
*
* The supported child policies are:
*
*
* -
*
* TERMINATE
– The child executions are terminated.
*
*
* -
*
* REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
* WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take
* appropriate actions when it receives an execution history with this event.
*
*
* -
*
* ABANDON
– No action is taken. The child executions continue to run.
*
*
*
*
*
* A child policy for this workflow execution must be specified either as a default for the workflow type or
* through this parameter. If neither this parameter is set nor a default child policy was specified at
* registration time then a fault is returned.
*
* @see ChildPolicy
*/
public final String childPolicyAsString() {
return childPolicy;
}
/**
* For responses, this returns true if the service returned a value for the TagList property. This DOES NOT check
* that the value is non-empty (for which, you should check the {@code 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 boolean hasTagList() {
return tagList != null && !(tagList instanceof SdkAutoConstructList);
}
/**
*
* The list of tags to associate with the child workflow execution. A maximum of 5 tags can be specified. You can
* list workflow executions with a specific tag by calling ListOpenWorkflowExecutions or
* ListClosedWorkflowExecutions and specifying a TagFilter.
*
*
* 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 {@link #hasTagList} method.
*
*
* @return The list of tags to associate with the child workflow execution. A maximum of 5 tags can be specified.
* You can list workflow executions with a specific tag by calling ListOpenWorkflowExecutions or
* ListClosedWorkflowExecutions and specifying a TagFilter.
*/
public final List tagList() {
return tagList;
}
/**
*
* The IAM role attached to the child workflow execution.
*
*
* @return The IAM role attached to the child workflow execution.
*/
public final String lambdaRole() {
return lambdaRole;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public final int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + Objects.hashCode(workflowType());
hashCode = 31 * hashCode + Objects.hashCode(workflowId());
hashCode = 31 * hashCode + Objects.hashCode(control());
hashCode = 31 * hashCode + Objects.hashCode(input());
hashCode = 31 * hashCode + Objects.hashCode(executionStartToCloseTimeout());
hashCode = 31 * hashCode + Objects.hashCode(taskList());
hashCode = 31 * hashCode + Objects.hashCode(taskPriority());
hashCode = 31 * hashCode + Objects.hashCode(taskStartToCloseTimeout());
hashCode = 31 * hashCode + Objects.hashCode(childPolicyAsString());
hashCode = 31 * hashCode + Objects.hashCode(hasTagList() ? tagList() : null);
hashCode = 31 * hashCode + Objects.hashCode(lambdaRole());
return hashCode;
}
@Override
public final boolean equals(Object obj) {
return equalsBySdkFields(obj);
}
@Override
public final boolean equalsBySdkFields(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof StartChildWorkflowExecutionDecisionAttributes)) {
return false;
}
StartChildWorkflowExecutionDecisionAttributes other = (StartChildWorkflowExecutionDecisionAttributes) obj;
return Objects.equals(workflowType(), other.workflowType()) && Objects.equals(workflowId(), other.workflowId())
&& Objects.equals(control(), other.control()) && Objects.equals(input(), other.input())
&& Objects.equals(executionStartToCloseTimeout(), other.executionStartToCloseTimeout())
&& Objects.equals(taskList(), other.taskList()) && Objects.equals(taskPriority(), other.taskPriority())
&& Objects.equals(taskStartToCloseTimeout(), other.taskStartToCloseTimeout())
&& Objects.equals(childPolicyAsString(), other.childPolicyAsString()) && hasTagList() == other.hasTagList()
&& Objects.equals(tagList(), other.tagList()) && Objects.equals(lambdaRole(), other.lambdaRole());
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*/
@Override
public final String toString() {
return ToString.builder("StartChildWorkflowExecutionDecisionAttributes").add("WorkflowType", workflowType())
.add("WorkflowId", workflowId()).add("Control", control()).add("Input", input())
.add("ExecutionStartToCloseTimeout", executionStartToCloseTimeout()).add("TaskList", taskList())
.add("TaskPriority", taskPriority()).add("TaskStartToCloseTimeout", taskStartToCloseTimeout())
.add("ChildPolicy", childPolicyAsString()).add("TagList", hasTagList() ? tagList() : null)
.add("LambdaRole", lambdaRole()).build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "workflowType":
return Optional.ofNullable(clazz.cast(workflowType()));
case "workflowId":
return Optional.ofNullable(clazz.cast(workflowId()));
case "control":
return Optional.ofNullable(clazz.cast(control()));
case "input":
return Optional.ofNullable(clazz.cast(input()));
case "executionStartToCloseTimeout":
return Optional.ofNullable(clazz.cast(executionStartToCloseTimeout()));
case "taskList":
return Optional.ofNullable(clazz.cast(taskList()));
case "taskPriority":
return Optional.ofNullable(clazz.cast(taskPriority()));
case "taskStartToCloseTimeout":
return Optional.ofNullable(clazz.cast(taskStartToCloseTimeout()));
case "childPolicy":
return Optional.ofNullable(clazz.cast(childPolicyAsString()));
case "tagList":
return Optional.ofNullable(clazz.cast(tagList()));
case "lambdaRole":
return Optional.ofNullable(clazz.cast(lambdaRole()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
@Override
public final Map> sdkFieldNameToField() {
return SDK_NAME_TO_FIELD;
}
private static Function