Interface CreateTemplateRequest.Builder

  • Method Details

    • clientToken

      CreateTemplateRequest.Builder clientToken(String clientToken)

      A unique, case-sensitive token that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token and the same parameters, the service returns the result of the original successful request.

      Parameters:
      clientToken - A unique, case-sensitive token that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token and the same parameters, the service returns the result of the original successful request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateName

      CreateTemplateRequest.Builder templateName(String templateName)

      The name of the template.

      Parameters:
      templateName - The name of the template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateDescription

      CreateTemplateRequest.Builder templateDescription(String templateDescription)

      A description of the template.

      Parameters:
      templateDescription - A description of the template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedRuleList

      CreateTemplateRequest.Builder associatedRuleList(Collection<RuleReference> associatedRuleList)

      The rules associated with the template.

      Parameters:
      associatedRuleList - The rules associated with the template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedRuleList

      CreateTemplateRequest.Builder associatedRuleList(RuleReference... associatedRuleList)

      The rules associated with the template.

      Parameters:
      associatedRuleList - The rules associated with the template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedRuleList

      CreateTemplateRequest.Builder associatedRuleList(Consumer<RuleReference.Builder>... associatedRuleList)

      The rules associated with the template.

      This is a convenience method that creates an instance of the RuleReference.Builder avoiding the need to create one manually via RuleReference.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to associatedRuleList(List<RuleReference>).

      Parameters:
      associatedRuleList - a consumer that will call methods on RuleReference.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • firewallType

      CreateTemplateRequest.Builder firewallType(String firewallType)

      The firewall type associated with the resource.

      Parameters:
      firewallType - The firewall type associated with the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • firewallType

      The firewall type associated with the resource.

      Parameters:
      firewallType - The firewall type associated with the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • isPublished

      CreateTemplateRequest.Builder isPublished(Boolean isPublished)

      Specifies whether to publish the resource. When true, the resource is saved in published ( ACTIVE) state. When false, it is saved as a draft (DRAFT). Default: true.

      Parameters:
      isPublished - Specifies whether to publish the resource. When true, the resource is saved in published (ACTIVE) state. When false, it is saved as a draft (DRAFT). Default: true.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags to add to the resource when it is created.

      Parameters:
      tags - The tags to add to the resource when it is created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CreateTemplateRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.