Class ConnectPeerSummary
- java.lang.Object
-
- software.amazon.awssdk.services.networkmanager.model.ConnectPeerSummary
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ConnectPeerSummary.Builder,ConnectPeerSummary>
@Generated("software.amazon.awssdk:codegen") public final class ConnectPeerSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ConnectPeerSummary.Builder,ConnectPeerSummary>
Summary description of a Connect peer.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConnectPeerSummary.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConnectPeerSummary.Builderbuilder()StringconnectAttachmentId()The ID of a Connect peer attachment.StringconnectPeerId()The ID of a Connect peer.ConnectPeerStateconnectPeerState()The state of a Connect peer.StringconnectPeerStateAsString()The state of a Connect peer.StringcoreNetworkId()The ID of a core network.InstantcreatedAt()The timestamp when a Connect peer was created.StringedgeLocation()The Region where the edge is located.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.List<SdkField<?>>sdkFields()static Class<? extends ConnectPeerSummary.Builder>serializableBuilderClass()StringsubnetArn()The subnet ARN for the Connect peer summary.List<Tag>tags()The list of key-value tags associated with the Connect peer summary.ConnectPeerSummary.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
-
coreNetworkId
public final String coreNetworkId()
The ID of a core network.
- Returns:
- The ID of a core network.
-
connectAttachmentId
public final String connectAttachmentId()
The ID of a Connect peer attachment.
- Returns:
- The ID of a Connect peer attachment.
-
connectPeerId
public final String connectPeerId()
The ID of a Connect peer.
- Returns:
- The ID of a Connect peer.
-
edgeLocation
public final String edgeLocation()
The Region where the edge is located.
- Returns:
- The Region where the edge is located.
-
connectPeerState
public final ConnectPeerState connectPeerState()
The state of a Connect peer.
If the service returns an enum value that is not available in the current SDK version,
connectPeerStatewill returnConnectPeerState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconnectPeerStateAsString().- Returns:
- The state of a Connect peer.
- See Also:
ConnectPeerState
-
connectPeerStateAsString
public final String connectPeerStateAsString()
The state of a Connect peer.
If the service returns an enum value that is not available in the current SDK version,
connectPeerStatewill returnConnectPeerState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconnectPeerStateAsString().- Returns:
- The state of a Connect peer.
- See Also:
ConnectPeerState
-
createdAt
public final Instant createdAt()
The timestamp when a Connect peer was created.
- Returns:
- The timestamp when a Connect peer was created.
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
tags
public final List<Tag> tags()
The list of key-value tags associated with the Connect peer summary.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- The list of key-value tags associated with the Connect peer summary.
-
subnetArn
public final String subnetArn()
The subnet ARN for the Connect peer summary.
- Returns:
- The subnet ARN for the Connect peer summary.
-
toBuilder
public ConnectPeerSummary.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ConnectPeerSummary.Builder,ConnectPeerSummary>
-
builder
public static ConnectPeerSummary.Builder builder()
-
serializableBuilderClass
public static Class<? extends ConnectPeerSummary.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.
-
-