All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cloudshiftdev.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties.kt Maven / Gradle / Ivy

There is a newer version: 0.10.0
Show newest version
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package io.cloudshiftdev.awscdk.cloud_assembly_schema

import io.cloudshiftdev.awscdk.common.CdkDslMarker
import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers
import kotlin.String
import kotlin.Unit

/**
 * Artifact properties for nested cloud assemblies.
 *
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*;
 * NestedCloudAssemblyProperties nestedCloudAssemblyProperties =
 * NestedCloudAssemblyProperties.builder()
 * .directoryName("directoryName")
 * // the properties below are optional
 * .displayName("displayName")
 * .build();
 * ```
 */
public interface NestedCloudAssemblyProperties {
  /**
   * Relative path to the nested cloud assembly.
   */
  public fun directoryName(): String

  /**
   * Display name for the cloud assembly.
   *
   * Default: - The artifact ID
   */
  public fun displayName(): String? = unwrap(this).getDisplayName()

  /**
   * A builder for [NestedCloudAssemblyProperties]
   */
  @CdkDslMarker
  public interface Builder {
    /**
     * @param directoryName Relative path to the nested cloud assembly. 
     */
    public fun directoryName(directoryName: String)

    /**
     * @param displayName Display name for the cloud assembly.
     */
    public fun displayName(displayName: String)
  }

  private class BuilderImpl : Builder {
    private val cdkBuilder:
        software.amazon.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties.Builder =
        software.amazon.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties.builder()

    /**
     * @param directoryName Relative path to the nested cloud assembly. 
     */
    override fun directoryName(directoryName: String) {
      cdkBuilder.directoryName(directoryName)
    }

    /**
     * @param displayName Display name for the cloud assembly.
     */
    override fun displayName(displayName: String) {
      cdkBuilder.displayName(displayName)
    }

    public fun build(): software.amazon.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties =
        cdkBuilder.build()
  }

  private class Wrapper(
    cdkObject: software.amazon.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties,
  ) : CdkObject(cdkObject),
      NestedCloudAssemblyProperties {
    /**
     * Relative path to the nested cloud assembly.
     */
    override fun directoryName(): String = unwrap(this).getDirectoryName()

    /**
     * Display name for the cloud assembly.
     *
     * Default: - The artifact ID
     */
    override fun displayName(): String? = unwrap(this).getDisplayName()
  }

  public companion object {
    public operator fun invoke(block: Builder.() -> Unit = {}): NestedCloudAssemblyProperties {
      val builderImpl = BuilderImpl()
      return Wrapper(builderImpl.apply(block).build())
    }

    internal
        fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties):
        NestedCloudAssemblyProperties = CdkObjectWrappers.wrap(cdkObject) as?
        NestedCloudAssemblyProperties ?: Wrapper(cdkObject)

    internal fun unwrap(wrapped: NestedCloudAssemblyProperties):
        software.amazon.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties = (wrapped as
        CdkObject).cdkObject as
        software.amazon.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy