@Generated(value="software.amazon.awssdk:codegen") public final class ItemValue extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ItemValue.Builder,ItemValue>
Describes a related item.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ItemValue.Builder |
static class |
ItemValue.Type |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the related item, if the related item is an Amazon resource.
|
static ItemValue.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static ItemValue |
fromArn(String arn)
Create an instance of this class with
arn() initialized to the given value. |
static ItemValue |
fromMetricDefinition(String metricDefinition)
Create an instance of this class with
metricDefinition() initialized to the given value. |
static ItemValue |
fromPagerDutyIncidentDetail(Consumer<PagerDutyIncidentDetail.Builder> pagerDutyIncidentDetail)
Create an instance of this class with
pagerDutyIncidentDetail() initialized to the given value. |
static ItemValue |
fromPagerDutyIncidentDetail(PagerDutyIncidentDetail pagerDutyIncidentDetail)
Create an instance of this class with
pagerDutyIncidentDetail() initialized to the given value. |
static ItemValue |
fromUrl(String url)
Create an instance of this class with
url() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
metricDefinition()
The metric definition, if the related item is a metric in Amazon CloudWatch.
|
PagerDutyIncidentDetail |
pagerDutyIncidentDetail()
Details about an incident that is associated with a PagerDuty incident.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ItemValue.Builder> |
serializableBuilderClass() |
ItemValue.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
ItemValue.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
String |
url()
The URL, if the related item is a non-Amazon Web Services resource.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String arn()
The Amazon Resource Name (ARN) of the related item, if the related item is an Amazon resource.
public final String metricDefinition()
The metric definition, if the related item is a metric in Amazon CloudWatch.
public final PagerDutyIncidentDetail pagerDutyIncidentDetail()
Details about an incident that is associated with a PagerDuty incident.
public final String url()
The URL, if the related item is a non-Amazon Web Services resource.
public ItemValue.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ItemValue.Builder,ItemValue>public static ItemValue.Builder builder()
public static Class<? extends ItemValue.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static ItemValue fromArn(String arn)
arn() initialized to the given value.
The Amazon Resource Name (ARN) of the related item, if the related item is an Amazon resource.
arn - The Amazon Resource Name (ARN) of the related item, if the related item is an Amazon resource.public static ItemValue fromMetricDefinition(String metricDefinition)
metricDefinition() initialized to the given value.
The metric definition, if the related item is a metric in Amazon CloudWatch.
metricDefinition - The metric definition, if the related item is a metric in Amazon CloudWatch.public static ItemValue fromPagerDutyIncidentDetail(PagerDutyIncidentDetail pagerDutyIncidentDetail)
pagerDutyIncidentDetail() initialized to the given value.
Details about an incident that is associated with a PagerDuty incident.
pagerDutyIncidentDetail - Details about an incident that is associated with a PagerDuty incident.public static ItemValue fromPagerDutyIncidentDetail(Consumer<PagerDutyIncidentDetail.Builder> pagerDutyIncidentDetail)
pagerDutyIncidentDetail() initialized to the given value.
Details about an incident that is associated with a PagerDuty incident.
pagerDutyIncidentDetail - Details about an incident that is associated with a PagerDuty incident.public static ItemValue fromUrl(String url)
url() initialized to the given value.
The URL, if the related item is a non-Amazon Web Services resource.
url - The URL, if the related item is a non-Amazon Web Services resource.public ItemValue.Type type()
ItemValue.Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be ItemValue.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.