Class CreateDataTransformationProfileSource

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

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

The source for initial content when creating a data transformation profile. Specify exactly one variant: a built-in starter profile, an existing profile version to clone, raw profile content, or a sample data file.

See Also:
  • Method Details

    • starterProfile

      public final StarterProfileSource starterProfile()

      Creates the profile from a built-in starter profile. Valid only when the source format is Consolidated Clinical Document Architecture (C-CDA).

      Returns:
      Creates the profile from a built-in starter profile. Valid only when the source format is Consolidated Clinical Document Architecture (C-CDA).
    • existingVersionedProfileId

      public final ExistingVersionedProfileSource existingVersionedProfileId()

      Creates the profile by cloning an existing profile at a specific version.

      Returns:
      Creates the profile by cloning an existing profile at a specific version.
    • profileMapping

      public final ProfileMappingSource profileMapping()

      Creates the profile from raw profile content that you provide directly. Use this variant for continuous integration and continuous delivery (CI/CD) workflows.

      Returns:
      Creates the profile from raw profile content that you provide directly. Use this variant for continuous integration and continuous delivery (CI/CD) workflows.
    • sampleData

      public final SampleDataSource sampleData()

      Creates the profile from a sample data file stored in Amazon S3. Valid only when the source format is Comma-separated values (CSV).

      Returns:
      Creates the profile from a sample data file stored in Amazon S3. Valid only when the source format is Comma-separated values (CSV).
    • 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<CreateDataTransformationProfileSource.Builder,CreateDataTransformationProfileSource>
      Returns:
      a builder for type T
    • builder

    • serializableBuilderClass

      public static Class<? extends CreateDataTransformationProfileSource.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)
    • fromStarterProfile

      public static CreateDataTransformationProfileSource fromStarterProfile(StarterProfileSource starterProfile)
      Create an instance of this class with starterProfile() initialized to the given value.

      Creates the profile from a built-in starter profile. Valid only when the source format is Consolidated Clinical Document Architecture (C-CDA).

      Parameters:
      starterProfile - Creates the profile from a built-in starter profile. Valid only when the source format is Consolidated Clinical Document Architecture (C-CDA).
    • fromStarterProfile

      public static CreateDataTransformationProfileSource fromStarterProfile(Consumer<StarterProfileSource.Builder> starterProfile)
      Create an instance of this class with starterProfile() initialized to the given value.

      Creates the profile from a built-in starter profile. Valid only when the source format is Consolidated Clinical Document Architecture (C-CDA).

      Parameters:
      starterProfile - Creates the profile from a built-in starter profile. Valid only when the source format is Consolidated Clinical Document Architecture (C-CDA).
    • fromExistingVersionedProfileId

      public static CreateDataTransformationProfileSource fromExistingVersionedProfileId(ExistingVersionedProfileSource existingVersionedProfileId)
      Create an instance of this class with existingVersionedProfileId() initialized to the given value.

      Creates the profile by cloning an existing profile at a specific version.

      Parameters:
      existingVersionedProfileId - Creates the profile by cloning an existing profile at a specific version.
    • fromExistingVersionedProfileId

      public static CreateDataTransformationProfileSource fromExistingVersionedProfileId(Consumer<ExistingVersionedProfileSource.Builder> existingVersionedProfileId)
      Create an instance of this class with existingVersionedProfileId() initialized to the given value.

      Creates the profile by cloning an existing profile at a specific version.

      Parameters:
      existingVersionedProfileId - Creates the profile by cloning an existing profile at a specific version.
    • fromProfileMapping

      public static CreateDataTransformationProfileSource fromProfileMapping(ProfileMappingSource profileMapping)
      Create an instance of this class with profileMapping() initialized to the given value.

      Creates the profile from raw profile content that you provide directly. Use this variant for continuous integration and continuous delivery (CI/CD) workflows.

      Parameters:
      profileMapping - Creates the profile from raw profile content that you provide directly. Use this variant for continuous integration and continuous delivery (CI/CD) workflows.
    • fromProfileMapping

      public static CreateDataTransformationProfileSource fromProfileMapping(Consumer<ProfileMappingSource.Builder> profileMapping)
      Create an instance of this class with profileMapping() initialized to the given value.

      Creates the profile from raw profile content that you provide directly. Use this variant for continuous integration and continuous delivery (CI/CD) workflows.

      Parameters:
      profileMapping - Creates the profile from raw profile content that you provide directly. Use this variant for continuous integration and continuous delivery (CI/CD) workflows.
    • fromSampleData

      public static CreateDataTransformationProfileSource fromSampleData(SampleDataSource sampleData)
      Create an instance of this class with sampleData() initialized to the given value.

      Creates the profile from a sample data file stored in Amazon S3. Valid only when the source format is Comma-separated values (CSV).

      Parameters:
      sampleData - Creates the profile from a sample data file stored in Amazon S3. Valid only when the source format is Comma-separated values (CSV).
    • fromSampleData

      public static CreateDataTransformationProfileSource fromSampleData(Consumer<SampleDataSource.Builder> sampleData)
      Create an instance of this class with sampleData() initialized to the given value.

      Creates the profile from a sample data file stored in Amazon S3. Valid only when the source format is Comma-separated values (CSV).

      Parameters:
      sampleData - Creates the profile from a sample data file stored in Amazon S3. Valid only when the source format is Comma-separated values (CSV).
    • 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 CreateDataTransformationProfileSource.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 CreateDataTransformationProfileSource.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.