Interface Template.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Template.Builder,Template>, SdkBuilder<Template.Builder,Template>, SdkPojo
Enclosing class:
Template

@Mutable @NotThreadSafe public static interface Template.Builder extends SdkPojo, CopyableBuilder<Template.Builder,Template>
  • Method Details

    • arn

      The Amazon Resource Name (ARN) that was returned when you called CreateTemplate.

      Parameters:
      arn - The Amazon Resource Name (ARN) that was returned when you called CreateTemplate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • connectorArn

      Template.Builder connectorArn(String connectorArn)

      The Amazon Resource Name (ARN) that was returned when you called CreateConnector.

      Parameters:
      connectorArn - The Amazon Resource Name (ARN) that was returned when you called CreateConnector.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      Template.Builder createdAt(Instant createdAt)

      The date and time that the template was created.

      Parameters:
      createdAt - The date and time that the template was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      Template.Builder definition(TemplateDefinition definition)

      Template configuration to define the information included in certificates. Define certificate validity and renewal periods, certificate request handling and enrollment options, key usage extensions, application policies, and cryptography settings.

      Parameters:
      definition - Template configuration to define the information included in certificates. Define certificate validity and renewal periods, certificate request handling and enrollment options, key usage extensions, application policies, and cryptography settings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      default Template.Builder definition(Consumer<TemplateDefinition.Builder> definition)

      Template configuration to define the information included in certificates. Define certificate validity and renewal periods, certificate request handling and enrollment options, key usage extensions, application policies, and cryptography settings.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to definition(TemplateDefinition).

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

      Name of the templates. Template names must be unique.

      Parameters:
      name - Name of the templates. Template names must be unique.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • objectIdentifier

      Template.Builder objectIdentifier(String objectIdentifier)

      Object identifier of a template.

      Parameters:
      objectIdentifier - Object identifier of a template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policySchema

      Template.Builder policySchema(Integer policySchema)

      The template schema version. Template schema versions can be v2, v3, or v4. The template configuration options change based on the template schema version.

      Parameters:
      policySchema - The template schema version. Template schema versions can be v2, v3, or v4. The template configuration options change based on the template schema version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • revision

      Template.Builder revision(TemplateRevision revision)

      The version of the template. Template updates will increment the minor revision. Re-enrolling all certificate holders will increment the major revision.

      Parameters:
      revision - The version of the template. Template updates will increment the minor revision. Re-enrolling all certificate holders will increment the major revision.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • revision

      default Template.Builder revision(Consumer<TemplateRevision.Builder> revision)

      The version of the template. Template updates will increment the minor revision. Re-enrolling all certificate holders will increment the major revision.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to revision(TemplateRevision).

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

      Template.Builder status(String status)

      Status of the template. Status can be creating, active, deleting, or failed.

      Parameters:
      status - Status of the template. Status can be creating, active, deleting, or failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Status of the template. Status can be creating, active, deleting, or failed.

      Parameters:
      status - Status of the template. Status can be creating, active, deleting, or failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • updatedAt

      Template.Builder updatedAt(Instant updatedAt)

      The date and time that the template was updated.

      Parameters:
      updatedAt - The date and time that the template was updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.