Class EventMetadata
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EventMetadata.Builder,EventMetadata>
Metadata associated with a cluster event, which may include details about various resource types.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic EventMetadata.Builderbuilder()final ClusterMetadatacluster()Metadata specific to cluster-level events.Metadata specific to events about the external Slurm accounting database of the cluster.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static EventMetadatafromCluster(Consumer<ClusterMetadata.Builder> cluster) Create an instance of this class withcluster()initialized to the given value.static EventMetadatafromCluster(ClusterMetadata cluster) Create an instance of this class withcluster()initialized to the given value.static EventMetadatafromDatabaseConfiguration(Consumer<DatabaseConfigurationMetadata.Builder> databaseConfiguration) Create an instance of this class withdatabaseConfiguration()initialized to the given value.static EventMetadatafromDatabaseConfiguration(DatabaseConfigurationMetadata databaseConfiguration) Create an instance of this class withdatabaseConfiguration()initialized to the given value.static EventMetadatafromInstance(Consumer<InstanceMetadata.Builder> instance) Create an instance of this class withinstance()initialized to the given value.static EventMetadatafromInstance(InstanceMetadata instance) Create an instance of this class withinstance()initialized to the given value.static EventMetadatafromInstanceGroup(Consumer<InstanceGroupMetadata.Builder> instanceGroup) Create an instance of this class withinstanceGroup()initialized to the given value.static EventMetadatafromInstanceGroup(InstanceGroupMetadata instanceGroup) Create an instance of this class withinstanceGroup()initialized to the given value.static EventMetadatafromInstanceGroupScaling(Consumer<InstanceGroupScalingMetadata.Builder> instanceGroupScaling) Create an instance of this class withinstanceGroupScaling()initialized to the given value.static EventMetadatafromInstanceGroupScaling(InstanceGroupScalingMetadata instanceGroupScaling) Create an instance of this class withinstanceGroupScaling()initialized to the given value.static EventMetadatafromSlurmHealth(Consumer<SlurmHealthMetadata.Builder> slurmHealth) Create an instance of this class withslurmHealth()initialized to the given value.static EventMetadatafromSlurmHealth(SlurmHealthMetadata slurmHealth) Create an instance of this class withslurmHealth()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final InstanceMetadatainstance()Metadata specific to instance-level events.final InstanceGroupMetadataMetadata specific to instance group-level events.Metadata related to instance group scaling events.static Class<? extends EventMetadata.Builder> final SlurmHealthMetadataMetadata specific to events about the health of the Slurm components on the controller node of the cluster.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
cluster
Metadata specific to cluster-level events.
- Returns:
- Metadata specific to cluster-level events.
-
instanceGroup
Metadata specific to instance group-level events.
- Returns:
- Metadata specific to instance group-level events.
-
instanceGroupScaling
Metadata related to instance group scaling events.
- Returns:
- Metadata related to instance group scaling events.
-
instance
Metadata specific to instance-level events.
- Returns:
- Metadata specific to instance-level events.
-
databaseConfiguration
Metadata specific to events about the external Slurm accounting database of the cluster.
- Returns:
- Metadata specific to events about the external Slurm accounting database of the cluster.
-
slurmHealth
Metadata specific to events about the health of the Slurm components on the controller node of the cluster.
- Returns:
- Metadata specific to events about the health of the Slurm components on the controller node of the cluster.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<EventMetadata.Builder,EventMetadata> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromCluster
Create an instance of this class withcluster()initialized to the given value.Metadata specific to cluster-level events.
- Parameters:
cluster- Metadata specific to cluster-level events.
-
fromCluster
Create an instance of this class withcluster()initialized to the given value.Metadata specific to cluster-level events.
- Parameters:
cluster- Metadata specific to cluster-level events.
-
fromInstanceGroup
Create an instance of this class withinstanceGroup()initialized to the given value.Metadata specific to instance group-level events.
- Parameters:
instanceGroup- Metadata specific to instance group-level events.
-
fromInstanceGroup
public static EventMetadata fromInstanceGroup(Consumer<InstanceGroupMetadata.Builder> instanceGroup) Create an instance of this class withinstanceGroup()initialized to the given value.Metadata specific to instance group-level events.
- Parameters:
instanceGroup- Metadata specific to instance group-level events.
-
fromInstanceGroupScaling
public static EventMetadata fromInstanceGroupScaling(InstanceGroupScalingMetadata instanceGroupScaling) Create an instance of this class withinstanceGroupScaling()initialized to the given value.Metadata related to instance group scaling events.
- Parameters:
instanceGroupScaling- Metadata related to instance group scaling events.
-
fromInstanceGroupScaling
public static EventMetadata fromInstanceGroupScaling(Consumer<InstanceGroupScalingMetadata.Builder> instanceGroupScaling) Create an instance of this class withinstanceGroupScaling()initialized to the given value.Metadata related to instance group scaling events.
- Parameters:
instanceGroupScaling- Metadata related to instance group scaling events.
-
fromInstance
Create an instance of this class withinstance()initialized to the given value.Metadata specific to instance-level events.
- Parameters:
instance- Metadata specific to instance-level events.
-
fromInstance
Create an instance of this class withinstance()initialized to the given value.Metadata specific to instance-level events.
- Parameters:
instance- Metadata specific to instance-level events.
-
fromDatabaseConfiguration
public static EventMetadata fromDatabaseConfiguration(DatabaseConfigurationMetadata databaseConfiguration) Create an instance of this class withdatabaseConfiguration()initialized to the given value.Metadata specific to events about the external Slurm accounting database of the cluster.
- Parameters:
databaseConfiguration- Metadata specific to events about the external Slurm accounting database of the cluster.
-
fromDatabaseConfiguration
public static EventMetadata fromDatabaseConfiguration(Consumer<DatabaseConfigurationMetadata.Builder> databaseConfiguration) Create an instance of this class withdatabaseConfiguration()initialized to the given value.Metadata specific to events about the external Slurm accounting database of the cluster.
- Parameters:
databaseConfiguration- Metadata specific to events about the external Slurm accounting database of the cluster.
-
fromSlurmHealth
Create an instance of this class withslurmHealth()initialized to the given value.Metadata specific to events about the health of the Slurm components on the controller node of the cluster.
- Parameters:
slurmHealth- Metadata specific to events about the health of the Slurm components on the controller node of the cluster.
-
fromSlurmHealth
Create an instance of this class withslurmHealth()initialized to the given value.Metadata specific to events about the health of the Slurm components on the controller node of the cluster.
- Parameters:
slurmHealth- Metadata specific to events about the health of the Slurm components on the controller node of the cluster.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beEventMetadata.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beEventMetadata.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-