@Generated(value="software.amazon.awssdk:codegen") public final class ComponentSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ComponentSummary.Builder,ComponentSummary>
A high-level summary of a component.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ComponentSummary.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the component.
|
static ComponentSummary.Builder |
builder() |
String |
changeDescription()
The change description for the current version of the component.
|
String |
dateCreated()
The original creation date of the component.
|
String |
description()
The description of the component.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasSupportedOsVersions()
For responses, this returns true if the service returned a value for the SupportedOsVersions property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
String |
name()
The name of the component.
|
Boolean |
obfuscate()
Indicates whether component source is hidden from view in the console, and from component detail results for API,
CLI, or SDK operations.
|
String |
owner()
The owner of the component.
|
Platform |
platform()
The operating system platform of the component.
|
String |
platformAsString()
The operating system platform of the component.
|
String |
publisher()
Contains the name of the publisher if this is a third-party component.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ComponentSummary.Builder> |
serializableBuilderClass() |
ComponentState |
state()
Describes the current status of the component.
|
List<String> |
supportedOsVersions()
The operating system (OS) version that the component supports.
|
Map<String,String> |
tags()
The tags that apply to the component.
|
ComponentSummary.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
ComponentType |
type()
The component type specifies whether Image Builder uses the component to build the image or only to test it.
|
String |
typeAsString()
The component type specifies whether Image Builder uses the component to build the image or only to test it.
|
String |
version()
The version of the component.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String arn()
The Amazon Resource Name (ARN) of the component.
public final String name()
The name of the component.
public final String version()
The version of the component.
public final Platform platform()
The operating system platform of the component.
If the service returns an enum value that is not available in the current SDK version, platform will
return Platform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
platformAsString().
Platformpublic final String platformAsString()
The operating system platform of the component.
If the service returns an enum value that is not available in the current SDK version, platform will
return Platform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
platformAsString().
Platformpublic final boolean hasSupportedOsVersions()
isEmpty() 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.public final List<String> supportedOsVersions()
The operating system (OS) version that the component supports. If the OS information is available, Image Builder performs a prefix match against the base image OS version during image recipe creation.
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 hasSupportedOsVersions() method.
public final ComponentState state()
Describes the current status of the component.
public final ComponentType type()
The component type specifies whether Image Builder uses the component to build the image or only to test it.
If the service returns an enum value that is not available in the current SDK version, type will return
ComponentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
ComponentTypepublic final String typeAsString()
The component type specifies whether Image Builder uses the component to build the image or only to test it.
If the service returns an enum value that is not available in the current SDK version, type will return
ComponentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
ComponentTypepublic final String owner()
The owner of the component.
public final String description()
The description of the component.
public final String changeDescription()
The change description for the current version of the component.
public final String dateCreated()
The original creation date of the component.
public final boolean hasTags()
isEmpty() 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.public final Map<String,String> tags()
The tags that apply to the component.
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.
public final String publisher()
Contains the name of the publisher if this is a third-party component. Otherwise, this property is empty.
public final Boolean obfuscate()
Indicates whether component source is hidden from view in the console, and from component detail results for API, CLI, or SDK operations.
public ComponentSummary.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ComponentSummary.Builder,ComponentSummary>public static ComponentSummary.Builder builder()
public static Class<? extends ComponentSummary.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.