@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.
|
String |
getName()
The name of the 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 |
setName(String name)
The name of the 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 |
withName(String name)
The name of the 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 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 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()