Interface Service.Builder

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

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

    • serviceArn

      Service.Builder serviceArn(String serviceArn)
      Sets the value of the ServiceArn property for this object.
      Parameters:
      serviceArn - The new value for the ServiceArn property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Service.Builder name(String name)
      Sets the value of the Name property for this object.
      Parameters:
      name - The new value for the Name property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      Service.Builder description(String description)
      Sets the value of the Description property for this object.
      Parameters:
      description - The new value for the Description property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedSystems

      Service.Builder associatedSystems(Collection<AssociatedSystem> associatedSystems)

      The systems associated with the service.

      Parameters:
      associatedSystems - The systems associated with the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedSystems

      Service.Builder associatedSystems(AssociatedSystem... associatedSystems)

      The systems associated with the service.

      Parameters:
      associatedSystems - The systems associated with the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedSystems

      Service.Builder associatedSystems(Consumer<AssociatedSystem.Builder>... associatedSystems)

      The systems associated with the service.

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

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

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

      Service.Builder policyArn(String policyArn)
      Sets the value of the PolicyArn property for this object.
      Parameters:
      policyArn - The new value for the PolicyArn property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • regions

      Service.Builder regions(Collection<String> regions)

      The AWS Regions where the service operates.

      Parameters:
      regions - The AWS Regions where the service operates.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • regions

      Service.Builder regions(String... regions)

      The AWS Regions where the service operates.

      Parameters:
      regions - The AWS Regions where the service operates.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissionModel

      Service.Builder permissionModel(PermissionModel permissionModel)

      The permission model for the service.

      Parameters:
      permissionModel - The permission model for the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissionModel

      default Service.Builder permissionModel(Consumer<PermissionModel.Builder> permissionModel)

      The permission model for the service.

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

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

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

      Service.Builder dependencyDiscovery(DependencyDiscoveryConfig dependencyDiscovery)

      The dependency discovery configuration for the service.

      Parameters:
      dependencyDiscovery - The dependency discovery configuration for the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dependencyDiscovery

      default Service.Builder dependencyDiscovery(Consumer<DependencyDiscoveryConfig.Builder> dependencyDiscovery)

      The dependency discovery configuration for the service.

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

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

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

      Service.Builder effectivePolicyValues(EffectivePolicyValues effectivePolicyValues)

      The effective policy values for the service.

      Parameters:
      effectivePolicyValues - The effective policy values for the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • effectivePolicyValues

      default Service.Builder effectivePolicyValues(Consumer<EffectivePolicyValues.Builder> effectivePolicyValues)

      The effective policy values for the service.

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

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

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

      Service.Builder achievability(Achievability achievability)

      The achievability status of the service's resilience targets.

      Parameters:
      achievability - The achievability status of the service's resilience targets.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • achievability

      default Service.Builder achievability(Consumer<Achievability.Builder> achievability)

      The achievability status of the service's resilience targets.

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

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

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

      Service.Builder reportConfiguration(ServiceReportConfiguration reportConfiguration)
      Sets the value of the ReportConfiguration property for this object.
      Parameters:
      reportConfiguration - The new value for the ReportConfiguration property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reportConfiguration

      default Service.Builder reportConfiguration(Consumer<ServiceReportConfiguration.Builder> reportConfiguration)
      Sets the value of the ReportConfiguration property for this object. This is a convenience method that creates an instance of the ServiceReportConfiguration.Builder avoiding the need to create one manually via ServiceReportConfiguration.builder().

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

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

      Service.Builder kmsKeyId(String kmsKeyId)
      Sets the value of the KmsKeyId property for this object.
      Parameters:
      kmsKeyId - The new value for the KmsKeyId property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Sets the value of the Tags property for this object.
      Parameters:
      tags - The new value for the Tags property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • estimatedAssessmentCost

      Service.Builder estimatedAssessmentCost(AssessmentCost estimatedAssessmentCost)

      The estimated cost of running an assessment on the service.

      Parameters:
      estimatedAssessmentCost - The estimated cost of running an assessment on the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • estimatedAssessmentCost

      default Service.Builder estimatedAssessmentCost(Consumer<AssessmentCost.Builder> estimatedAssessmentCost)

      The estimated cost of running an assessment on the service.

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

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

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

      Service.Builder resourceDiscovery(ResourceDiscoveryStatus resourceDiscovery)

      The resource discovery status for the service.

      Parameters:
      resourceDiscovery - The resource discovery status for the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceDiscovery

      default Service.Builder resourceDiscovery(Consumer<ResourceDiscoveryStatus.Builder> resourceDiscovery)

      The resource discovery status for the service.

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

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

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

      Service.Builder assessmentStatus(String assessmentStatus)

      The current assessment status of the service.

      Parameters:
      assessmentStatus - The current assessment status of the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • assessmentStatus

      Service.Builder assessmentStatus(AssessmentStatus assessmentStatus)

      The current assessment status of the service.

      Parameters:
      assessmentStatus - The current assessment status of the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • rerunAssessment

      Service.Builder rerunAssessment(Boolean rerunAssessment)

      Indicates whether the assessment should be rerun.

      Parameters:
      rerunAssessment - Indicates whether the assessment should be rerun.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • openFindingsCount

      Service.Builder openFindingsCount(Integer openFindingsCount)

      The number of open findings for the service.

      Parameters:
      openFindingsCount - The number of open findings for the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resolvedFindingsCount

      Service.Builder resolvedFindingsCount(Integer resolvedFindingsCount)

      The number of resolved findings for the service.

      Parameters:
      resolvedFindingsCount - The number of resolved findings for the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • organizationId

      Service.Builder organizationId(String organizationId)

      The AWS Organizations identifier for the service.

      Parameters:
      organizationId - The AWS Organizations identifier for the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ouId

      Service.Builder ouId(String ouId)

      The organizational unit (OU) identifier for the service.

      Parameters:
      ouId - The organizational unit (OU) identifier for the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountId

      Service.Builder accountId(String accountId)

      The AWS account ID that owns the service.

      Parameters:
      accountId - The AWS account ID that owns the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      Service.Builder createdAt(Instant createdAt)

      The timestamp when the service was created.

      Parameters:
      createdAt - The timestamp when the service was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      Service.Builder updatedAt(Instant updatedAt)

      The timestamp when the service was last updated.

      Parameters:
      updatedAt - The timestamp when the service was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.