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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Workload.BuilderaccountIds(String... accountIds)Sets the value of the AccountIds property for this object.Workload.BuilderaccountIds(Collection<String> accountIds)Sets the value of the AccountIds property for this object.Workload.Builderapplications(String... applications)List of AppRegistry application ARNs associated to the workload.Workload.Builderapplications(Collection<String> applications)List of AppRegistry application ARNs associated to the workload.Workload.BuilderarchitecturalDesign(String architecturalDesign)Sets the value of the ArchitecturalDesign property for this object.Workload.BuilderawsRegions(String... awsRegions)Sets the value of the AwsRegions property for this object.Workload.BuilderawsRegions(Collection<String> awsRegions)Sets the value of the AwsRegions property for this object.Workload.Builderdescription(String description)Sets the value of the Description property for this object.default Workload.BuilderdiscoveryConfig(Consumer<WorkloadDiscoveryConfig.Builder> discoveryConfig)Discovery configuration associated to the workload.Workload.BuilderdiscoveryConfig(WorkloadDiscoveryConfig discoveryConfig)Discovery configuration associated to the workload.Workload.Builderenvironment(String environment)Sets the value of the Environment property for this object.Workload.Builderenvironment(WorkloadEnvironment environment)Sets the value of the Environment property for this object.Workload.BuilderimprovementStatus(String improvementStatus)Sets the value of the ImprovementStatus property for this object.Workload.BuilderimprovementStatus(WorkloadImprovementStatus improvementStatus)Sets the value of the ImprovementStatus property for this object.Workload.Builderindustry(String industry)Sets the value of the Industry property for this object.Workload.BuilderindustryType(String industryType)Sets the value of the IndustryType property for this object.Workload.BuilderisReviewOwnerUpdateAcknowledged(Boolean isReviewOwnerUpdateAcknowledged)Flag indicating whether the workload owner has acknowledged that the Review owner field is required.Workload.Builderlenses(String... lenses)Sets the value of the Lenses property for this object.Workload.Builderlenses(Collection<String> lenses)Sets the value of the Lenses property for this object.Workload.BuildernonAwsRegions(String... nonAwsRegions)Sets the value of the NonAwsRegions property for this object.Workload.BuildernonAwsRegions(Collection<String> nonAwsRegions)Sets the value of the NonAwsRegions property for this object.Workload.Buildernotes(String notes)Sets the value of the Notes property for this object.Workload.Builderowner(String owner)Sets the value of the Owner property for this object.Workload.BuilderpillarPriorities(String... pillarPriorities)Sets the value of the PillarPriorities property for this object.Workload.BuilderpillarPriorities(Collection<String> pillarPriorities)Sets the value of the PillarPriorities property for this object.Workload.BuilderprioritizedRiskCounts(Map<Risk,Integer> prioritizedRiskCounts)Sets the value of the PrioritizedRiskCounts property for this object.Workload.BuilderprioritizedRiskCountsWithStrings(Map<String,Integer> prioritizedRiskCounts)Sets the value of the PrioritizedRiskCounts property for this object.Workload.Builderprofiles(Collection<WorkloadProfile> profiles)Profile associated with a workload.Workload.Builderprofiles(Consumer<WorkloadProfile.Builder>... profiles)Profile associated with a workload.Workload.Builderprofiles(WorkloadProfile... profiles)Profile associated with a workload.Workload.BuilderreviewOwner(String reviewOwner)Sets the value of the ReviewOwner property for this object.Workload.BuilderreviewRestrictionDate(Instant reviewRestrictionDate)Sets the value of the ReviewRestrictionDate property for this object.Workload.BuilderriskCounts(Map<Risk,Integer> riskCounts)Sets the value of the RiskCounts property for this object.Workload.BuilderriskCountsWithStrings(Map<String,Integer> riskCounts)Sets the value of the RiskCounts property for this object.Workload.BuildershareInvitationId(String shareInvitationId)The ID assigned to the share invitation.Workload.Buildertags(Map<String,String> tags)The tags associated with the workload.Workload.BuilderupdatedAt(Instant updatedAt)Sets the value of the UpdatedAt property for this object.Workload.BuilderworkloadArn(String workloadArn)Sets the value of the WorkloadArn property for this object.Workload.BuilderworkloadId(String workloadId)Sets the value of the WorkloadId property for this object.Workload.BuilderworkloadName(String workloadName)Sets the value of the WorkloadName property for this object.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
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:
WorkloadEnvironment,WorkloadEnvironment
-
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:
WorkloadEnvironment,WorkloadEnvironment
-
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:
WorkloadImprovementStatus,WorkloadImprovementStatus
-
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:
WorkloadImprovementStatus,WorkloadImprovementStatus
-
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
Workload.Builder lenses(Collection<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.
-
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
Workload.Builder tags(Map<String,String> 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 theWorkloadDiscoveryConfig.Builderavoiding the need to create one manually viaWorkloadDiscoveryConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todiscoveryConfig(WorkloadDiscoveryConfig).- Parameters:
discoveryConfig- a consumer that will call methods onWorkloadDiscoveryConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
discoveryConfig(WorkloadDiscoveryConfig)
-
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
Workload.Builder profiles(Collection<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
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
Workload.Builder profiles(Consumer<WorkloadProfile.Builder>... profiles)
Profile associated with a workload.
This is a convenience method that creates an instance of theWorkloadProfile.Builderavoiding the need to create one manually viaWorkloadProfile.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#profiles(List.) - Parameters:
profiles- a consumer that will call methods onWorkloadProfile.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#profiles(java.util.Collection)
-
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.
-
-