@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetManagedResourceResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetManagedResourceResult() |
Modifier and Type | Method and Description |
---|---|
GetManagedResourceResult |
addAppliedWeightsEntry(String key,
Float value)
Add a single AppliedWeights entry
|
GetManagedResourceResult |
clearAppliedWeightsEntries()
Removes all the entries added into AppliedWeights.
|
GetManagedResourceResult |
clone() |
boolean |
equals(Object obj) |
Map<String,Float> |
getAppliedWeights()
A collection of key-value pairs that indicate whether resources are active in Availability Zones or not.
|
String |
getArn()
The Amazon Resource Name (ARN) for the resource.
|
List<AutoshiftInResource> |
getAutoshifts()
An array of the autoshifts that are active for the resource.
|
String |
getName()
The name of the resource.
|
PracticeRunConfiguration |
getPracticeRunConfiguration()
The practice run configuration for zonal autoshift that's associated with the resource.
|
String |
getZonalAutoshiftStatus()
The status for zonal autoshift for a resource.
|
List<ZonalShiftInResource> |
getZonalShifts()
The zonal shifts that are currently active for a resource.
|
int |
hashCode() |
void |
setAppliedWeights(Map<String,Float> appliedWeights)
A collection of key-value pairs that indicate whether resources are active in Availability Zones or not.
|
void |
setArn(String arn)
The Amazon Resource Name (ARN) for the resource.
|
void |
setAutoshifts(Collection<AutoshiftInResource> autoshifts)
An array of the autoshifts that are active for the resource.
|
void |
setName(String name)
The name of the resource.
|
void |
setPracticeRunConfiguration(PracticeRunConfiguration practiceRunConfiguration)
The practice run configuration for zonal autoshift that's associated with the resource.
|
void |
setZonalAutoshiftStatus(String zonalAutoshiftStatus)
The status for zonal autoshift for a resource.
|
void |
setZonalShifts(Collection<ZonalShiftInResource> zonalShifts)
The zonal shifts that are currently active for a resource.
|
String |
toString()
Returns a string representation of this object.
|
GetManagedResourceResult |
withAppliedWeights(Map<String,Float> appliedWeights)
A collection of key-value pairs that indicate whether resources are active in Availability Zones or not.
|
GetManagedResourceResult |
withArn(String arn)
The Amazon Resource Name (ARN) for the resource.
|
GetManagedResourceResult |
withAutoshifts(AutoshiftInResource... autoshifts)
An array of the autoshifts that are active for the resource.
|
GetManagedResourceResult |
withAutoshifts(Collection<AutoshiftInResource> autoshifts)
An array of the autoshifts that are active for the resource.
|
GetManagedResourceResult |
withName(String name)
The name of the resource.
|
GetManagedResourceResult |
withPracticeRunConfiguration(PracticeRunConfiguration practiceRunConfiguration)
The practice run configuration for zonal autoshift that's associated with the resource.
|
GetManagedResourceResult |
withZonalAutoshiftStatus(String zonalAutoshiftStatus)
The status for zonal autoshift for a resource.
|
GetManagedResourceResult |
withZonalAutoshiftStatus(ZonalAutoshiftStatus zonalAutoshiftStatus)
The status for zonal autoshift for a resource.
|
GetManagedResourceResult |
withZonalShifts(Collection<ZonalShiftInResource> zonalShifts)
The zonal shifts that are currently active for a resource.
|
GetManagedResourceResult |
withZonalShifts(ZonalShiftInResource... zonalShifts)
The zonal shifts that are currently active for a resource.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public Map<String,Float> getAppliedWeights()
A collection of key-value pairs that indicate whether resources are active in Availability Zones or not. The key name is the Availability Zone where the resource is deployed. The value is 1 or 0.
public void setAppliedWeights(Map<String,Float> appliedWeights)
A collection of key-value pairs that indicate whether resources are active in Availability Zones or not. The key name is the Availability Zone where the resource is deployed. The value is 1 or 0.
appliedWeights
- A collection of key-value pairs that indicate whether resources are active in Availability Zones or not.
The key name is the Availability Zone where the resource is deployed. The value is 1 or 0.public GetManagedResourceResult withAppliedWeights(Map<String,Float> appliedWeights)
A collection of key-value pairs that indicate whether resources are active in Availability Zones or not. The key name is the Availability Zone where the resource is deployed. The value is 1 or 0.
appliedWeights
- A collection of key-value pairs that indicate whether resources are active in Availability Zones or not.
The key name is the Availability Zone where the resource is deployed. The value is 1 or 0.public GetManagedResourceResult addAppliedWeightsEntry(String key, Float value)
public GetManagedResourceResult clearAppliedWeightsEntries()
public void setArn(String arn)
The Amazon Resource Name (ARN) for the resource.
arn
- The Amazon Resource Name (ARN) for the resource.public String getArn()
The Amazon Resource Name (ARN) for the resource.
public GetManagedResourceResult withArn(String arn)
The Amazon Resource Name (ARN) for the resource.
arn
- The Amazon Resource Name (ARN) for the resource.public List<AutoshiftInResource> getAutoshifts()
An array of the autoshifts that are active for the resource.
public void setAutoshifts(Collection<AutoshiftInResource> autoshifts)
An array of the autoshifts that are active for the resource.
autoshifts
- An array of the autoshifts that are active for the resource.public GetManagedResourceResult withAutoshifts(AutoshiftInResource... autoshifts)
An array of the autoshifts that are active for the resource.
NOTE: This method appends the values to the existing list (if any). Use
setAutoshifts(java.util.Collection)
or withAutoshifts(java.util.Collection)
if you want to
override the existing values.
autoshifts
- An array of the autoshifts that are active for the resource.public GetManagedResourceResult withAutoshifts(Collection<AutoshiftInResource> autoshifts)
An array of the autoshifts that are active for the resource.
autoshifts
- An array of the autoshifts that are active for the resource.public void setName(String name)
The name of the resource.
name
- The name of the resource.public String getName()
The name of the resource.
public GetManagedResourceResult withName(String name)
The name of the resource.
name
- The name of the resource.public void setPracticeRunConfiguration(PracticeRunConfiguration practiceRunConfiguration)
The practice run configuration for zonal autoshift that's associated with the resource.
practiceRunConfiguration
- The practice run configuration for zonal autoshift that's associated with the resource.public PracticeRunConfiguration getPracticeRunConfiguration()
The practice run configuration for zonal autoshift that's associated with the resource.
public GetManagedResourceResult withPracticeRunConfiguration(PracticeRunConfiguration practiceRunConfiguration)
The practice run configuration for zonal autoshift that's associated with the resource.
practiceRunConfiguration
- The practice run configuration for zonal autoshift that's associated with the resource.public void setZonalAutoshiftStatus(String zonalAutoshiftStatus)
The status for zonal autoshift for a resource. When the autoshift status is ENABLED
, Amazon Web
Services shifts traffic for a resource away from an Availability Zone, on your behalf, when Amazon Web Services
determines that there's an issue in the Availability Zone that could potentially affect customers.
zonalAutoshiftStatus
- The status for zonal autoshift for a resource. When the autoshift status is ENABLED
, Amazon
Web Services shifts traffic for a resource away from an Availability Zone, on your behalf, when Amazon Web
Services determines that there's an issue in the Availability Zone that could potentially affect
customers.ZonalAutoshiftStatus
public String getZonalAutoshiftStatus()
The status for zonal autoshift for a resource. When the autoshift status is ENABLED
, Amazon Web
Services shifts traffic for a resource away from an Availability Zone, on your behalf, when Amazon Web Services
determines that there's an issue in the Availability Zone that could potentially affect customers.
ENABLED
, Amazon
Web Services shifts traffic for a resource away from an Availability Zone, on your behalf, when Amazon
Web Services determines that there's an issue in the Availability Zone that could potentially affect
customers.ZonalAutoshiftStatus
public GetManagedResourceResult withZonalAutoshiftStatus(String zonalAutoshiftStatus)
The status for zonal autoshift for a resource. When the autoshift status is ENABLED
, Amazon Web
Services shifts traffic for a resource away from an Availability Zone, on your behalf, when Amazon Web Services
determines that there's an issue in the Availability Zone that could potentially affect customers.
zonalAutoshiftStatus
- The status for zonal autoshift for a resource. When the autoshift status is ENABLED
, Amazon
Web Services shifts traffic for a resource away from an Availability Zone, on your behalf, when Amazon Web
Services determines that there's an issue in the Availability Zone that could potentially affect
customers.ZonalAutoshiftStatus
public GetManagedResourceResult withZonalAutoshiftStatus(ZonalAutoshiftStatus zonalAutoshiftStatus)
The status for zonal autoshift for a resource. When the autoshift status is ENABLED
, Amazon Web
Services shifts traffic for a resource away from an Availability Zone, on your behalf, when Amazon Web Services
determines that there's an issue in the Availability Zone that could potentially affect customers.
zonalAutoshiftStatus
- The status for zonal autoshift for a resource. When the autoshift status is ENABLED
, Amazon
Web Services shifts traffic for a resource away from an Availability Zone, on your behalf, when Amazon Web
Services determines that there's an issue in the Availability Zone that could potentially affect
customers.ZonalAutoshiftStatus
public List<ZonalShiftInResource> getZonalShifts()
The zonal shifts that are currently active for a resource.
public void setZonalShifts(Collection<ZonalShiftInResource> zonalShifts)
The zonal shifts that are currently active for a resource.
zonalShifts
- The zonal shifts that are currently active for a resource.public GetManagedResourceResult withZonalShifts(ZonalShiftInResource... zonalShifts)
The zonal shifts that are currently active for a resource.
NOTE: This method appends the values to the existing list (if any). Use
setZonalShifts(java.util.Collection)
or withZonalShifts(java.util.Collection)
if you want to
override the existing values.
zonalShifts
- The zonal shifts that are currently active for a resource.public GetManagedResourceResult withZonalShifts(Collection<ZonalShiftInResource> zonalShifts)
The zonal shifts that are currently active for a resource.
zonalShifts
- The zonal shifts that are currently active for a resource.public String toString()
toString
in class Object
Object.toString()
public GetManagedResourceResult clone()