Class Domain
- java.lang.Object
-
- software.amazon.awssdk.services.simspaceweaver.model.Domain
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Domain.Builder,Domain>
@Generated("software.amazon.awssdk:codegen") public final class Domain extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Domain.Builder,Domain>
A collection of app instances that run the same executable app code and have the same launch options and commands.
For more information about domains, see Key concepts: Domains in the SimSpace Weaver User Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDomain.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Domain.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LifecycleManagementStrategylifecycle()The type of lifecycle management for apps in the domain.StringlifecycleAsString()The type of lifecycle management for apps in the domain.Stringname()The name of the domain.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Domain.Builder>serializableBuilderClass()Domain.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
lifecycle
public final LifecycleManagementStrategy lifecycle()
The type of lifecycle management for apps in the domain. Indicates whether apps in this domain are managed (SimSpace Weaver starts and stops the apps) or unmanaged (you must start and stop the apps).
Lifecycle types
-
PerWorker– Managed: SimSpace Weaver starts one app on each worker. -
BySpatialSubdivision– Managed: SimSpace Weaver starts one app for each spatial partition. -
ByRequest– Unmanaged: You use theStartAppAPI to start the apps and use theStopAppAPI to stop the apps.
If the service returns an enum value that is not available in the current SDK version,
lifecyclewill returnLifecycleManagementStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlifecycleAsString().- Returns:
- The type of lifecycle management for apps in the domain. Indicates whether apps in this domain are
managed (SimSpace Weaver starts and stops the apps) or unmanaged (you must start and stop
the apps).
Lifecycle types
-
PerWorker– Managed: SimSpace Weaver starts one app on each worker. -
BySpatialSubdivision– Managed: SimSpace Weaver starts one app for each spatial partition. -
ByRequest– Unmanaged: You use theStartAppAPI to start the apps and use theStopAppAPI to stop the apps.
-
- See Also:
LifecycleManagementStrategy
-
-
lifecycleAsString
public final String lifecycleAsString()
The type of lifecycle management for apps in the domain. Indicates whether apps in this domain are managed (SimSpace Weaver starts and stops the apps) or unmanaged (you must start and stop the apps).
Lifecycle types
-
PerWorker– Managed: SimSpace Weaver starts one app on each worker. -
BySpatialSubdivision– Managed: SimSpace Weaver starts one app for each spatial partition. -
ByRequest– Unmanaged: You use theStartAppAPI to start the apps and use theStopAppAPI to stop the apps.
If the service returns an enum value that is not available in the current SDK version,
lifecyclewill returnLifecycleManagementStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlifecycleAsString().- Returns:
- The type of lifecycle management for apps in the domain. Indicates whether apps in this domain are
managed (SimSpace Weaver starts and stops the apps) or unmanaged (you must start and stop
the apps).
Lifecycle types
-
PerWorker– Managed: SimSpace Weaver starts one app on each worker. -
BySpatialSubdivision– Managed: SimSpace Weaver starts one app for each spatial partition. -
ByRequest– Unmanaged: You use theStartAppAPI to start the apps and use theStopAppAPI to stop the apps.
-
- See Also:
LifecycleManagementStrategy
-
-
name
public final String name()
The name of the domain.
- Returns:
- The name of the domain.
-
toBuilder
public Domain.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Domain.Builder,Domain>
-
builder
public static Domain.Builder builder()
-
serializableBuilderClass
public static Class<? extends Domain.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-