Class SystemEventMetadata

java.lang.Object
software.amazon.awssdk.services.resiliencehubv2.model.SystemEventMetadata
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<SystemEventMetadata.Builder,SystemEventMetadata>

@Generated("software.amazon.awssdk:codegen") public final class SystemEventMetadata extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SystemEventMetadata.Builder,SystemEventMetadata>

Type-specific metadata for each system event type.

See Also:
  • Method Details

    • systemCreated

      public final SystemCreatedMetadata systemCreated()

      Metadata for a system created event.

      Returns:
      Metadata for a system created event.
    • systemDeleted

      public final SystemDeletedMetadata systemDeleted()

      Metadata for a system deleted event.

      Returns:
      Metadata for a system deleted event.
    • systemUserJourneyCreated

      public final SystemUserJourneyCreatedMetadata systemUserJourneyCreated()

      Metadata for a system user journey created event.

      Returns:
      Metadata for a system user journey created event.
    • systemUserJourneyUpdated

      public final SystemUserJourneyUpdatedMetadata systemUserJourneyUpdated()

      Metadata for a system user journey updated event.

      Returns:
      Metadata for a system user journey updated event.
    • systemUserJourneyDeleted

      public final SystemUserJourneyDeletedMetadata systemUserJourneyDeleted()

      Metadata for a system user journey deleted event.

      Returns:
      Metadata for a system user journey deleted event.
    • systemServiceAssociated

      public final SystemServiceAssociatedMetadata systemServiceAssociated()

      Metadata for a system service associated event.

      Returns:
      Metadata for a system service associated event.
    • systemServiceDisassociated

      public final SystemServiceDisassociatedMetadata systemServiceDisassociated()

      Metadata for a system service disassociated event.

      Returns:
      Metadata for a system service disassociated event.
    • systemPolicyAssociated

      public final SystemPolicyAssociatedMetadata systemPolicyAssociated()

      Metadata for a system policy associated event.

      Returns:
      Metadata for a system policy associated event.
    • systemPolicyDisassociated

      public final SystemPolicyDisassociatedMetadata systemPolicyDisassociated()

      Metadata for a system policy disassociated event.

      Returns:
      Metadata for a system policy disassociated event.
    • toBuilder

      public SystemEventMetadata.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<SystemEventMetadata.Builder,SystemEventMetadata>
      Returns:
      a builder for type T
    • builder

      public static SystemEventMetadata.Builder builder()
    • serializableBuilderClass

      public static Class<? extends SystemEventMetadata.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • fromSystemCreated

      public static SystemEventMetadata fromSystemCreated(SystemCreatedMetadata systemCreated)
      Create an instance of this class with systemCreated() initialized to the given value.

      Metadata for a system created event.

      Parameters:
      systemCreated - Metadata for a system created event.
    • fromSystemCreated

      public static SystemEventMetadata fromSystemCreated(Consumer<SystemCreatedMetadata.Builder> systemCreated)
      Create an instance of this class with systemCreated() initialized to the given value.

      Metadata for a system created event.

      Parameters:
      systemCreated - Metadata for a system created event.
    • fromSystemDeleted

      public static SystemEventMetadata fromSystemDeleted(SystemDeletedMetadata systemDeleted)
      Create an instance of this class with systemDeleted() initialized to the given value.

      Metadata for a system deleted event.

      Parameters:
      systemDeleted - Metadata for a system deleted event.
    • fromSystemDeleted

      public static SystemEventMetadata fromSystemDeleted(Consumer<SystemDeletedMetadata.Builder> systemDeleted)
      Create an instance of this class with systemDeleted() initialized to the given value.

      Metadata for a system deleted event.

      Parameters:
      systemDeleted - Metadata for a system deleted event.
    • fromSystemUserJourneyCreated

      public static SystemEventMetadata fromSystemUserJourneyCreated(SystemUserJourneyCreatedMetadata systemUserJourneyCreated)
      Create an instance of this class with systemUserJourneyCreated() initialized to the given value.

      Metadata for a system user journey created event.

      Parameters:
      systemUserJourneyCreated - Metadata for a system user journey created event.
    • fromSystemUserJourneyCreated

      public static SystemEventMetadata fromSystemUserJourneyCreated(Consumer<SystemUserJourneyCreatedMetadata.Builder> systemUserJourneyCreated)
      Create an instance of this class with systemUserJourneyCreated() initialized to the given value.

      Metadata for a system user journey created event.

      Parameters:
      systemUserJourneyCreated - Metadata for a system user journey created event.
    • fromSystemUserJourneyUpdated

      public static SystemEventMetadata fromSystemUserJourneyUpdated(SystemUserJourneyUpdatedMetadata systemUserJourneyUpdated)
      Create an instance of this class with systemUserJourneyUpdated() initialized to the given value.

      Metadata for a system user journey updated event.

      Parameters:
      systemUserJourneyUpdated - Metadata for a system user journey updated event.
    • fromSystemUserJourneyUpdated

      public static SystemEventMetadata fromSystemUserJourneyUpdated(Consumer<SystemUserJourneyUpdatedMetadata.Builder> systemUserJourneyUpdated)
      Create an instance of this class with systemUserJourneyUpdated() initialized to the given value.

      Metadata for a system user journey updated event.

      Parameters:
      systemUserJourneyUpdated - Metadata for a system user journey updated event.
    • fromSystemUserJourneyDeleted

      public static SystemEventMetadata fromSystemUserJourneyDeleted(SystemUserJourneyDeletedMetadata systemUserJourneyDeleted)
      Create an instance of this class with systemUserJourneyDeleted() initialized to the given value.

      Metadata for a system user journey deleted event.

      Parameters:
      systemUserJourneyDeleted - Metadata for a system user journey deleted event.
    • fromSystemUserJourneyDeleted

      public static SystemEventMetadata fromSystemUserJourneyDeleted(Consumer<SystemUserJourneyDeletedMetadata.Builder> systemUserJourneyDeleted)
      Create an instance of this class with systemUserJourneyDeleted() initialized to the given value.

      Metadata for a system user journey deleted event.

      Parameters:
      systemUserJourneyDeleted - Metadata for a system user journey deleted event.
    • fromSystemServiceAssociated

      public static SystemEventMetadata fromSystemServiceAssociated(SystemServiceAssociatedMetadata systemServiceAssociated)
      Create an instance of this class with systemServiceAssociated() initialized to the given value.

      Metadata for a system service associated event.

      Parameters:
      systemServiceAssociated - Metadata for a system service associated event.
    • fromSystemServiceAssociated

      public static SystemEventMetadata fromSystemServiceAssociated(Consumer<SystemServiceAssociatedMetadata.Builder> systemServiceAssociated)
      Create an instance of this class with systemServiceAssociated() initialized to the given value.

      Metadata for a system service associated event.

      Parameters:
      systemServiceAssociated - Metadata for a system service associated event.
    • fromSystemServiceDisassociated

      public static SystemEventMetadata fromSystemServiceDisassociated(SystemServiceDisassociatedMetadata systemServiceDisassociated)
      Create an instance of this class with systemServiceDisassociated() initialized to the given value.

      Metadata for a system service disassociated event.

      Parameters:
      systemServiceDisassociated - Metadata for a system service disassociated event.
    • fromSystemServiceDisassociated

      public static SystemEventMetadata fromSystemServiceDisassociated(Consumer<SystemServiceDisassociatedMetadata.Builder> systemServiceDisassociated)
      Create an instance of this class with systemServiceDisassociated() initialized to the given value.

      Metadata for a system service disassociated event.

      Parameters:
      systemServiceDisassociated - Metadata for a system service disassociated event.
    • fromSystemPolicyAssociated

      public static SystemEventMetadata fromSystemPolicyAssociated(SystemPolicyAssociatedMetadata systemPolicyAssociated)
      Create an instance of this class with systemPolicyAssociated() initialized to the given value.

      Metadata for a system policy associated event.

      Parameters:
      systemPolicyAssociated - Metadata for a system policy associated event.
    • fromSystemPolicyAssociated

      public static SystemEventMetadata fromSystemPolicyAssociated(Consumer<SystemPolicyAssociatedMetadata.Builder> systemPolicyAssociated)
      Create an instance of this class with systemPolicyAssociated() initialized to the given value.

      Metadata for a system policy associated event.

      Parameters:
      systemPolicyAssociated - Metadata for a system policy associated event.
    • fromSystemPolicyDisassociated

      public static SystemEventMetadata fromSystemPolicyDisassociated(SystemPolicyDisassociatedMetadata systemPolicyDisassociated)
      Create an instance of this class with systemPolicyDisassociated() initialized to the given value.

      Metadata for a system policy disassociated event.

      Parameters:
      systemPolicyDisassociated - Metadata for a system policy disassociated event.
    • fromSystemPolicyDisassociated

      public static SystemEventMetadata fromSystemPolicyDisassociated(Consumer<SystemPolicyDisassociatedMetadata.Builder> systemPolicyDisassociated)
      Create an instance of this class with systemPolicyDisassociated() initialized to the given value.

      Metadata for a system policy disassociated event.

      Parameters:
      systemPolicyDisassociated - Metadata for a system policy disassociated event.
    • type

      public SystemEventMetadata.Type type()
      Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will be SystemEventMetadata.Type.UNKNOWN_TO_SDK_VERSION if 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 be SystemEventMetadata.Type.UNKNOWN_TO_SDK_VERSION if zero members are set, and null if more than one member is set.
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.