Class MonitoredResourceInfo
- java.lang.Object
-
- software.amazon.awssdk.services.lightsail.model.MonitoredResourceInfo
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MonitoredResourceInfo.Builder,MonitoredResourceInfo>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMonitoredResourceInfo.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The Amazon Resource Name (ARN) of the resource being monitored.static MonitoredResourceInfo.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of the Lightsail resource being monitored.ResourceTyperesourceType()The Lightsail resource type of the resource being monitored.StringresourceTypeAsString()The Lightsail resource type of the resource being monitored.List<SdkField<?>>sdkFields()static Class<? extends MonitoredResourceInfo.Builder>serializableBuilderClass()MonitoredResourceInfo.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
arn
public final String arn()
The Amazon Resource Name (ARN) of the resource being monitored.
- Returns:
- The Amazon Resource Name (ARN) of the resource being monitored.
-
name
public final String name()
The name of the Lightsail resource being monitored.
- Returns:
- The name of the Lightsail resource being monitored.
-
resourceType
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,
resourceTypewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- 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.
- See Also:
ResourceType
-
resourceTypeAsString
public 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,
resourceTypewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- 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.
- See Also:
ResourceType
-
toBuilder
public MonitoredResourceInfo.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MonitoredResourceInfo.Builder,MonitoredResourceInfo>
-
builder
public static MonitoredResourceInfo.Builder builder()
-
serializableBuilderClass
public static Class<? extends MonitoredResourceInfo.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-