@Generated(value="software.amazon.awssdk:codegen") public final class Workload extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Workload.Builder,Workload>
A workload return object.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Workload.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
accountIds()
Returns the value of the AccountIds property for this object.
|
List<String> |
applications()
List of AppRegistry application ARNs associated to the workload.
|
String |
architecturalDesign()
Returns the value of the ArchitecturalDesign property for this object.
|
List<String> |
awsRegions()
Returns the value of the AwsRegions property for this object.
|
static Workload.Builder |
builder() |
String |
description()
Returns the value of the Description property for this object.
|
WorkloadDiscoveryConfig |
discoveryConfig()
Discovery configuration associated to the workload.
|
WorkloadEnvironment |
environment()
Returns the value of the Environment property for this object.
|
String |
environmentAsString()
Returns the value of the Environment property for this object.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAccountIds()
For responses, this returns true if the service returned a value for the AccountIds property.
|
boolean |
hasApplications()
For responses, this returns true if the service returned a value for the Applications property.
|
boolean |
hasAwsRegions()
For responses, this returns true if the service returned a value for the AwsRegions property.
|
int |
hashCode() |
boolean |
hasLenses()
For responses, this returns true if the service returned a value for the Lenses property.
|
boolean |
hasNonAwsRegions()
For responses, this returns true if the service returned a value for the NonAwsRegions property.
|
boolean |
hasPillarPriorities()
For responses, this returns true if the service returned a value for the PillarPriorities property.
|
boolean |
hasPrioritizedRiskCounts()
For responses, this returns true if the service returned a value for the PrioritizedRiskCounts property.
|
boolean |
hasProfiles()
For responses, this returns true if the service returned a value for the Profiles property.
|
boolean |
hasRiskCounts()
For responses, this returns true if the service returned a value for the RiskCounts property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
WorkloadImprovementStatus |
improvementStatus()
Returns the value of the ImprovementStatus property for this object.
|
String |
improvementStatusAsString()
Returns the value of the ImprovementStatus property for this object.
|
String |
industry()
Returns the value of the Industry property for this object.
|
String |
industryType()
Returns the value of the IndustryType property for this object.
|
Boolean |
isReviewOwnerUpdateAcknowledged()
Flag indicating whether the workload owner has acknowledged that the Review owner field is required.
|
List<String> |
lenses()
Returns the value of the Lenses property for this object.
|
List<String> |
nonAwsRegions()
Returns the value of the NonAwsRegions property for this object.
|
String |
notes()
Returns the value of the Notes property for this object.
|
String |
owner()
Returns the value of the Owner property for this object.
|
List<String> |
pillarPriorities()
Returns the value of the PillarPriorities property for this object.
|
Map<Risk,Integer> |
prioritizedRiskCounts()
Returns the value of the PrioritizedRiskCounts property for this object.
|
Map<String,Integer> |
prioritizedRiskCountsAsStrings()
Returns the value of the PrioritizedRiskCounts property for this object.
|
List<WorkloadProfile> |
profiles()
Profile associated with a workload.
|
String |
reviewOwner()
Returns the value of the ReviewOwner property for this object.
|
Instant |
reviewRestrictionDate()
Returns the value of the ReviewRestrictionDate property for this object.
|
Map<Risk,Integer> |
riskCounts()
Returns the value of the RiskCounts property for this object.
|
Map<String,Integer> |
riskCountsAsStrings()
Returns the value of the RiskCounts property for this object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Workload.Builder> |
serializableBuilderClass() |
String |
shareInvitationId()
The ID assigned to the share invitation.
|
Map<String,String> |
tags()
The tags associated with the workload.
|
Workload.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
updatedAt()
Returns the value of the UpdatedAt property for this object.
|
String |
workloadArn()
Returns the value of the WorkloadArn property for this object.
|
String |
workloadId()
Returns the value of the WorkloadId property for this object.
|
String |
workloadName()
Returns the value of the WorkloadName property for this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String workloadId()
public final String workloadArn()
public final String workloadName()
public final String description()
public final WorkloadEnvironment environment()
If the service returns an enum value that is not available in the current SDK version, environment will
return WorkloadEnvironment.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from environmentAsString().
WorkloadEnvironmentpublic final String environmentAsString()
If the service returns an enum value that is not available in the current SDK version, environment will
return WorkloadEnvironment.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from environmentAsString().
WorkloadEnvironmentpublic final Instant updatedAt()
public final boolean hasAccountIds()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> accountIds()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAccountIds() method.
public final boolean hasAwsRegions()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> awsRegions()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAwsRegions() method.
public final boolean hasNonAwsRegions()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> nonAwsRegions()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasNonAwsRegions() method.
public final String architecturalDesign()
public final String reviewOwner()
public final Instant reviewRestrictionDate()
public final 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.
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.
public final String industryType()
public final String industry()
public final String notes()
public final WorkloadImprovementStatus improvementStatus()
If the service returns an enum value that is not available in the current SDK version, improvementStatus
will return WorkloadImprovementStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from improvementStatusAsString().
WorkloadImprovementStatuspublic final String improvementStatusAsString()
If the service returns an enum value that is not available in the current SDK version, improvementStatus
will return WorkloadImprovementStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from improvementStatusAsString().
WorkloadImprovementStatuspublic final Map<Risk,Integer> riskCounts()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRiskCounts() method.
public final boolean hasRiskCounts()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,Integer> riskCountsAsStrings()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRiskCounts() method.
public final boolean hasPillarPriorities()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> pillarPriorities()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasPillarPriorities() method.
public final boolean hasLenses()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> lenses()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasLenses() method.
public final String owner()
public final String shareInvitationId()
The ID assigned to the share invitation.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final Map<String,String> tags()
The tags associated with the workload.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final WorkloadDiscoveryConfig discoveryConfig()
Discovery configuration associated to the workload.
public final boolean hasApplications()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> applications()
List of AppRegistry application ARNs associated to the workload.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasApplications() method.
public final boolean hasProfiles()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<WorkloadProfile> profiles()
Profile associated with a workload.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasProfiles() method.
public final Map<Risk,Integer> prioritizedRiskCounts()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasPrioritizedRiskCounts() method.
public final boolean hasPrioritizedRiskCounts()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final Map<String,Integer> prioritizedRiskCountsAsStrings()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasPrioritizedRiskCounts() method.
public Workload.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Workload.Builder,Workload>public static Workload.Builder builder()
public static Class<? extends Workload.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.