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

cloudshift.awscdk.dsl.services.route53.MxRecordValueDsl.kt Maven / Gradle / Ivy

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

package cloudshift.awscdk.dsl.services.route53

import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Number
import kotlin.String
import software.amazon.awscdk.services.route53.MxRecordValue

/**
 * Properties for a MX record value.
 *
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.route53.*;
 * MxRecordValue mxRecordValue = MxRecordValue.builder()
 * .hostName("hostName")
 * .priority(123)
 * .build();
 * ```
 */
@CdkDslMarker
public class MxRecordValueDsl {
  private val cdkBuilder: MxRecordValue.Builder = MxRecordValue.builder()

  /**
   * @param hostName The mail server host name. 
   */
  public fun hostName(hostName: String) {
    cdkBuilder.hostName(hostName)
  }

  /**
   * @param priority The priority. 
   */
  public fun priority(priority: Number) {
    cdkBuilder.priority(priority)
  }

  public fun build(): MxRecordValue = cdkBuilder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy