@Generated(value="software.amazon.awssdk:codegen") public final class MonitoredResourceInfo extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MonitoredResourceInfo.Builder,MonitoredResourceInfo>
Describes resource being monitored by an alarm.
An alarm is a way to monitor your Amazon Lightsail resource metrics. For more information, see Alarms in Amazon Lightsail.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MonitoredResourceInfo.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the resource being monitored.
|
static MonitoredResourceInfo.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the Lightsail resource being monitored.
|
ResourceType |
resourceType()
The Lightsail resource type of the resource being monitored.
|
String |
resourceTypeAsString()
The Lightsail resource type of the resource being monitored.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MonitoredResourceInfo.Builder> |
serializableBuilderClass() |
MonitoredResourceInfo.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String arn()
The Amazon Resource Name (ARN) of the resource being monitored.
public final String name()
The name of the Lightsail resource being monitored.
public final ResourceType resourceType()
The Lightsail resource type of the resource being monitored.
Instances, load balancers, and relational databases are the only Lightsail resources that can currently be monitored by alarms.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
Instances, load balancers, and relational databases are the only Lightsail resources that can currently be monitored by alarms.
ResourceTypepublic final String resourceTypeAsString()
The Lightsail resource type of the resource being monitored.
Instances, load balancers, and relational databases are the only Lightsail resources that can currently be monitored by alarms.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
Instances, load balancers, and relational databases are the only Lightsail resources that can currently be monitored by alarms.
ResourceTypepublic MonitoredResourceInfo.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MonitoredResourceInfo.Builder,MonitoredResourceInfo>public static MonitoredResourceInfo.Builder builder()
public static Class<? extends MonitoredResourceInfo.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.