Class CfnRecordSetGroupProps.Builder

java.lang.Object
software.amazon.awscdk.services.route53.CfnRecordSetGroupProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRecordSetGroupProps>
Enclosing interface:
CfnRecordSetGroupProps

@Stability(Stable) public static final class CfnRecordSetGroupProps.Builder extends Object implements software.amazon.jsii.Builder<CfnRecordSetGroupProps>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • comment

      @Stability(Stable) public CfnRecordSetGroupProps.Builder comment(String comment)
      Parameters:
      comment - Optional: Any comments you want to include about a change batch request.
      Returns:
      this
    • hostedZoneId

      @Stability(Stable) public CfnRecordSetGroupProps.Builder hostedZoneId(String hostedZoneId)
      Parameters:
      hostedZoneId - The ID of the hosted zone that you want to create records in. Specify either HostedZoneName or HostedZoneId , but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone using HostedZoneId .
      Returns:
      this
    • hostedZoneName

      @Stability(Stable) public CfnRecordSetGroupProps.Builder hostedZoneName(String hostedZoneName)
      Parameters:
      hostedZoneName - The name of the hosted zone that you want to create records in. You must include a trailing dot (for example, www.example.com. ) as part of the HostedZoneName .

      When you create a stack using an AWS::Route53::RecordSet that specifies HostedZoneName , AWS CloudFormation attempts to find a hosted zone whose name matches the HostedZoneName . If AWS CloudFormation can't find a hosted zone with a matching domain name, or if there is more than one hosted zone with the specified domain name, AWS CloudFormation will not create the stack.

      Specify either HostedZoneName or HostedZoneId , but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone using HostedZoneId .

      Returns:
      this
    • recordSets

      @Stability(Stable) public CfnRecordSetGroupProps.Builder recordSets(IResolvable recordSets)
      Parameters:
      recordSets - A complex type that contains one RecordSet element for each record that you want to create.
      Returns:
      this
    • recordSets

      @Stability(Stable) public CfnRecordSetGroupProps.Builder recordSets(List<? extends Object> recordSets)
      Parameters:
      recordSets - A complex type that contains one RecordSet element for each record that you want to create.
      Returns:
      this
    • build

      @Stability(Stable) public CfnRecordSetGroupProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnRecordSetGroupProps>
      Returns:
      a new instance of CfnRecordSetGroupProps
      Throws:
      NullPointerException - if any required attribute was not provided