Interface Workload.Builder

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

public static interface Workload.Builder extends SdkPojo, CopyableBuilder<Workload.Builder,Workload>
  • Method Details

    • workloadId

      Workload.Builder workloadId(String workloadId)
      Sets the value of the WorkloadId property for this object.
      Parameters:
      workloadId - The new value for the WorkloadId property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workloadArn

      Workload.Builder workloadArn(String workloadArn)
      Sets the value of the WorkloadArn property for this object.
      Parameters:
      workloadArn - The new value for the WorkloadArn property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workloadName

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

      Workload.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.
    • environment

      Workload.Builder environment(String environment)
      Sets the value of the Environment property for this object.
      Parameters:
      environment - The new value for the Environment property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • environment

      Workload.Builder environment(WorkloadEnvironment environment)
      Sets the value of the Environment property for this object.
      Parameters:
      environment - The new value for the Environment property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • updatedAt

      Workload.Builder updatedAt(Instant updatedAt)
      Sets the value of the UpdatedAt property for this object.
      Parameters:
      updatedAt - The new value for the UpdatedAt property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountIds

      Workload.Builder accountIds(Collection<String> accountIds)
      Sets the value of the AccountIds property for this object.
      Parameters:
      accountIds - The new value for the AccountIds property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountIds

      Workload.Builder accountIds(String... accountIds)
      Sets the value of the AccountIds property for this object.
      Parameters:
      accountIds - The new value for the AccountIds property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • awsRegions

      Workload.Builder awsRegions(Collection<String> awsRegions)
      Sets the value of the AwsRegions property for this object.
      Parameters:
      awsRegions - The new value for the AwsRegions property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • awsRegions

      Workload.Builder awsRegions(String... awsRegions)
      Sets the value of the AwsRegions property for this object.
      Parameters:
      awsRegions - The new value for the AwsRegions property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nonAwsRegions

      Workload.Builder nonAwsRegions(Collection<String> nonAwsRegions)
      Sets the value of the NonAwsRegions property for this object.
      Parameters:
      nonAwsRegions - The new value for the NonAwsRegions property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nonAwsRegions

      Workload.Builder nonAwsRegions(String... nonAwsRegions)
      Sets the value of the NonAwsRegions property for this object.
      Parameters:
      nonAwsRegions - The new value for the NonAwsRegions property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • architecturalDesign

      Workload.Builder architecturalDesign(String architecturalDesign)
      Sets the value of the ArchitecturalDesign property for this object.
      Parameters:
      architecturalDesign - The new value for the ArchitecturalDesign property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reviewOwner

      Workload.Builder reviewOwner(String reviewOwner)
      Sets the value of the ReviewOwner property for this object.
      Parameters:
      reviewOwner - The new value for the ReviewOwner property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reviewRestrictionDate

      Workload.Builder reviewRestrictionDate(Instant reviewRestrictionDate)
      Sets the value of the ReviewRestrictionDate property for this object.
      Parameters:
      reviewRestrictionDate - The new value for the ReviewRestrictionDate property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isReviewOwnerUpdateAcknowledged

      Workload.Builder isReviewOwnerUpdateAcknowledged(Boolean isReviewOwnerUpdateAcknowledged)

      Flag indicating whether the workload owner has acknowledged that the Review owner field is required.

      If a Review owner is not added to the workload within 60 days of acknowledgement, access to the workload is restricted until an owner is added.

      Parameters:
      isReviewOwnerUpdateAcknowledged - Flag indicating whether the workload owner has acknowledged that the Review owner field is required.

      If a Review owner is not added to the workload within 60 days of acknowledgement, access to the workload is restricted until an owner is added.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • industryType

      Workload.Builder industryType(String industryType)
      Sets the value of the IndustryType property for this object.
      Parameters:
      industryType - The new value for the IndustryType property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • industry

      Workload.Builder industry(String industry)
      Sets the value of the Industry property for this object.
      Parameters:
      industry - The new value for the Industry property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • notes

      Workload.Builder notes(String notes)
      Sets the value of the Notes property for this object.
      Parameters:
      notes - The new value for the Notes property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • improvementStatus

      Workload.Builder improvementStatus(String improvementStatus)
      Sets the value of the ImprovementStatus property for this object.
      Parameters:
      improvementStatus - The new value for the ImprovementStatus property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • improvementStatus

      Workload.Builder improvementStatus(WorkloadImprovementStatus improvementStatus)
      Sets the value of the ImprovementStatus property for this object.
      Parameters:
      improvementStatus - The new value for the ImprovementStatus property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • riskCountsWithStrings

      Workload.Builder riskCountsWithStrings(Map<String,Integer> riskCounts)
      Sets the value of the RiskCounts property for this object.
      Parameters:
      riskCounts - The new value for the RiskCounts property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • riskCounts

      Workload.Builder riskCounts(Map<Risk,Integer> riskCounts)
      Sets the value of the RiskCounts property for this object.
      Parameters:
      riskCounts - The new value for the RiskCounts property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pillarPriorities

      Workload.Builder pillarPriorities(Collection<String> pillarPriorities)
      Sets the value of the PillarPriorities property for this object.
      Parameters:
      pillarPriorities - The new value for the PillarPriorities property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pillarPriorities

      Workload.Builder pillarPriorities(String... pillarPriorities)
      Sets the value of the PillarPriorities property for this object.
      Parameters:
      pillarPriorities - The new value for the PillarPriorities property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lenses

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

      Workload.Builder lenses(String... lenses)
      Sets the value of the Lenses property for this object.
      Parameters:
      lenses - The new value for the Lenses property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • owner

      Workload.Builder owner(String owner)
      Sets the value of the Owner property for this object.
      Parameters:
      owner - The new value for the Owner property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • shareInvitationId

      Workload.Builder shareInvitationId(String shareInvitationId)

      The ID assigned to the share invitation.

      Parameters:
      shareInvitationId - The ID assigned to the share invitation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags associated with the workload.

      Parameters:
      tags - The tags associated with the workload.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • discoveryConfig

      Workload.Builder discoveryConfig(WorkloadDiscoveryConfig discoveryConfig)

      Discovery configuration associated to the workload.

      Parameters:
      discoveryConfig - Discovery configuration associated to the workload.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • discoveryConfig

      default Workload.Builder discoveryConfig(Consumer<WorkloadDiscoveryConfig.Builder> discoveryConfig)

      Discovery configuration associated to the workload.

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

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

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

      Workload.Builder applications(Collection<String> applications)

      List of AppRegistry application ARNs associated to the workload.

      Parameters:
      applications - List of AppRegistry application ARNs associated to the workload.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • applications

      Workload.Builder applications(String... applications)

      List of AppRegistry application ARNs associated to the workload.

      Parameters:
      applications - List of AppRegistry application ARNs associated to the workload.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • profiles

      Profile associated with a workload.

      Parameters:
      profiles - Profile associated with a workload.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • profiles

      Workload.Builder profiles(WorkloadProfile... profiles)

      Profile associated with a workload.

      Parameters:
      profiles - Profile associated with a workload.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • profiles

      Profile associated with a workload.

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

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

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

      Workload.Builder prioritizedRiskCountsWithStrings(Map<String,Integer> prioritizedRiskCounts)
      Sets the value of the PrioritizedRiskCounts property for this object.
      Parameters:
      prioritizedRiskCounts - The new value for the PrioritizedRiskCounts property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • prioritizedRiskCounts

      Workload.Builder prioritizedRiskCounts(Map<Risk,Integer> prioritizedRiskCounts)
      Sets the value of the PrioritizedRiskCounts property for this object.
      Parameters:
      prioritizedRiskCounts - The new value for the PrioritizedRiskCounts property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.