@Generated(value="software.amazon.awssdk:codegen") public final class Component extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Component.Builder,Component>
A detailed view of a component.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Component.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the component.
|
static Component.Builder |
builder() |
String |
changeDescription()
The change description of the component.
|
String |
data()
Component data contains the YAML document content for the component.
|
String |
dateCreated()
The date that the component was created.
|
String |
description()
The description of the component.
|
Boolean |
encrypted()
The encryption status of the component.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasParameters()
For responses, this returns true if the service returned a value for the Parameters property.
|
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 |
kmsKeyId()
The KMS key identifier used to encrypt the component.
|
String |
name()
The name of the component.
|
String |
owner()
The owner of the component.
|
List<ComponentParameterDetail> |
parameters()
Contains parameter details for each of the parameters that are defined for the component.
|
Platform |
platform()
The platform of the component.
|
String |
platformAsString()
The platform of the component.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Component.Builder> |
serializableBuilderClass() |
ComponentState |
state()
Describes the current status of the component.
|
List<String> |
supportedOsVersions()
The operating system (OS) version supported by the component.
|
Map<String,String> |
tags()
The tags associated with the component.
|
Component.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
ComponentType |
type()
The type of the component denotes whether the component is used to build the image or only to test it.
|
String |
typeAsString()
The type of the component denotes whether the component is used 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 String description()
The description of the component.
public final String changeDescription()
The change description of the component.
public final ComponentType type()
The type of the component denotes whether the component is used 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 type of the component denotes whether the component is used 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 Platform platform()
The 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 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 supported by the component. If the OS information is available, a prefix match is performed 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. This is used for components that are no longer active.
public final boolean hasParameters()
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<ComponentParameterDetail> parameters()
Contains parameter details for each of the parameters that are defined for 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 hasParameters() method.
public final String owner()
The owner of the component.
public final String data()
Component data contains the YAML document content for the component.
public final String kmsKeyId()
The KMS key identifier used to encrypt the component.
public final Boolean encrypted()
The encryption status of the component.
public final String dateCreated()
The date that the component was created.
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 associated with 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 Component.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Component.Builder,Component>public static Component.Builder builder()
public static Class<? extends Component.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.