Class CreatePoolOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(String instanceId)
        Instantiates a new builder with required properties.
        Parameters:
        instanceId - the instanceId
    • Method Detail

      • build

        public CreatePoolOptions build()
        Builds a CreatePoolOptions.
        Returns:
        the new CreatePoolOptions instance
      • addOrigins

        public CreatePoolOptions.Builder addOrigins​(OriginInput origins)
        Adds an origins to origins.
        Parameters:
        origins - the new origins
        Returns:
        the CreatePoolOptions builder
      • addHealthcheckSubnets

        public CreatePoolOptions.Builder addHealthcheckSubnets​(String healthcheckSubnets)
        Adds an healthcheckSubnets to healthcheckSubnets.
        Parameters:
        healthcheckSubnets - the new healthcheckSubnets
        Returns:
        the CreatePoolOptions builder
      • instanceId

        public CreatePoolOptions.Builder instanceId​(String instanceId)
        Set the instanceId.
        Parameters:
        instanceId - the instanceId
        Returns:
        the CreatePoolOptions builder
      • description

        public CreatePoolOptions.Builder description​(String description)
        Set the description.
        Parameters:
        description - the description
        Returns:
        the CreatePoolOptions builder
      • enabled

        public CreatePoolOptions.Builder enabled​(Boolean enabled)
        Set the enabled.
        Parameters:
        enabled - the enabled
        Returns:
        the CreatePoolOptions builder
      • healthyOriginsThreshold

        public CreatePoolOptions.Builder healthyOriginsThreshold​(long healthyOriginsThreshold)
        Set the healthyOriginsThreshold.
        Parameters:
        healthyOriginsThreshold - the healthyOriginsThreshold
        Returns:
        the CreatePoolOptions builder
      • origins

        public CreatePoolOptions.Builder origins​(List<OriginInput> origins)
        Set the origins. Existing origins will be replaced.
        Parameters:
        origins - the origins
        Returns:
        the CreatePoolOptions builder
      • monitor

        public CreatePoolOptions.Builder monitor​(String monitor)
        Set the monitor.
        Parameters:
        monitor - the monitor
        Returns:
        the CreatePoolOptions builder
      • notificationChannel

        public CreatePoolOptions.Builder notificationChannel​(String notificationChannel)
        Set the notificationChannel.
        Parameters:
        notificationChannel - the notificationChannel
        Returns:
        the CreatePoolOptions builder
      • healthcheckRegion

        public CreatePoolOptions.Builder healthcheckRegion​(String healthcheckRegion)
        Set the healthcheckRegion.
        Parameters:
        healthcheckRegion - the healthcheckRegion
        Returns:
        the CreatePoolOptions builder
      • healthcheckSubnets

        public CreatePoolOptions.Builder healthcheckSubnets​(List<String> healthcheckSubnets)
        Set the healthcheckSubnets. Existing healthcheckSubnets will be replaced.
        Parameters:
        healthcheckSubnets - the healthcheckSubnets
        Returns:
        the CreatePoolOptions builder
      • xCorrelationId

        public CreatePoolOptions.Builder xCorrelationId​(String xCorrelationId)
        Set the xCorrelationId.
        Parameters:
        xCorrelationId - the xCorrelationId
        Returns:
        the CreatePoolOptions builder