Class OutputResources
- java.lang.Object
-
- software.amazon.awssdk.services.imagebuilder.model.OutputResources
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<OutputResources.Builder,OutputResources>
@Generated("software.amazon.awssdk:codegen") public final class OutputResources extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OutputResources.Builder,OutputResources>
The resources produced by this image.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOutputResources.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Ami>amis()The Amazon EC2 AMIs created by this image.static OutputResources.Builderbuilder()List<Container>containers()Container images that the pipeline has generated and stored in the output repository.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAmis()For responses, this returns true if the service returned a value for the Amis property.booleanhasContainers()For responses, this returns true if the service returned a value for the Containers property.inthashCode()List<SdkField<?>>sdkFields()static Class<? extends OutputResources.Builder>serializableBuilderClass()OutputResources.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
-
hasAmis
public final boolean hasAmis()
For responses, this returns true if the service returned a value for the Amis 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.
-
amis
public final List<Ami> amis()
The Amazon EC2 AMIs created by this image.
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
hasAmis()method.- Returns:
- The Amazon EC2 AMIs created by this image.
-
hasContainers
public final boolean hasContainers()
For responses, this returns true if the service returned a value for the Containers 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.
-
containers
public final List<Container> containers()
Container images that the pipeline has generated and stored in the output repository.
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
hasContainers()method.- Returns:
- Container images that the pipeline has generated and stored in the output repository.
-
toBuilder
public OutputResources.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<OutputResources.Builder,OutputResources>
-
builder
public static OutputResources.Builder builder()
-
serializableBuilderClass
public static Class<? extends OutputResources.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.
-
-