Class RasterImageFileExtension.Builder
java.lang.Object
security.whisper.javastix.coo.extension.types.RasterImageFileExtension.Builder
- Enclosing class:
RasterImageFileExtension
Builds instances of type
RasterImageFileExtension.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbitsPerPixel(long bitsPerPixel) Initializes the optional valuebitsPerPixelto bitsPerPixel.bitsPerPixel(Optional<Long> bitsPerPixel) Initializes the optional valuebitsPerPixelto bitsPerPixel.build()Builds a newRasterImageFileExtension.customProperties(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thecustomPropertiesmap.Sets or replaces all mappings from the specified map as entries for theexifTagsmap.from(StixCustomProperties instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixCustomPropertiesinstance.from(CyberObservableExtensionCommonProperties instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.coo.extension.CyberObservableExtensionCommonPropertiesinstance.from(RasterImageFileExtensionExt instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.coo.extension.types.RasterImageFileExtensionExtinstance.imageCompressionAlgorithm(String imageCompressionAlgorithm) Initializes the optional valueimageCompressionAlgorithmto imageCompressionAlgorithm.imageCompressionAlgorithm(Optional<String> imageCompressionAlgorithm) Initializes the optional valueimageCompressionAlgorithmto imageCompressionAlgorithm.imageHeight(long imageHeight) Initializes the optional valueimageHeightto imageHeight.imageHeight(Optional<Long> imageHeight) Initializes the optional valueimageHeightto imageHeight.imageWidth(long imageWidth) Initializes the optional valueimageWidthto imageWidth.imageWidth(Optional<Long> imageWidth) Initializes the optional valueimageWidthto imageWidth.putAllCustomProperties(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tocustomPropertiesmap.putAllExifTags(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries toexifTagsmap.putCustomProperty(String key, Object value) Put one entry to thecustomPropertiesmap.putCustomProperty(Map.Entry<String, ? extends Object> entry) Put one entry to thecustomPropertiesmap.putExifTag(String key, Object value) Put one entry to theexifTagsmap.putExifTag(Map.Entry<String, ? extends Object> entry) Put one entry to theexifTagsmap.Initializes the value for thetypeattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final RasterImageFileExtension.Builder from(StixCustomProperties instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixCustomPropertiesinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final RasterImageFileExtension.Builder from(CyberObservableExtensionCommonProperties instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.coo.extension.CyberObservableExtensionCommonPropertiesinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final RasterImageFileExtension.Builder from(RasterImageFileExtensionExt instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.coo.extension.types.RasterImageFileExtensionExtinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
imageHeight
Initializes the optional valueimageHeightto imageHeight.- Parameters:
imageHeight- The value for imageHeight- Returns:
thisbuilder for chained invocation
-
imageHeight
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies the height of the image in the image file, in pixels.") public final RasterImageFileExtension.Builder imageHeight(Optional<Long> imageHeight) Initializes the optional valueimageHeightto imageHeight.- Parameters:
imageHeight- The value for imageHeight- Returns:
thisbuilder for use in a chained invocation
-
imageWidth
Initializes the optional valueimageWidthto imageWidth.- Parameters:
imageWidth- The value for imageWidth- Returns:
thisbuilder for chained invocation
-
imageWidth
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies the width of the image in the image file, in pixels.") public final RasterImageFileExtension.Builder imageWidth(Optional<Long> imageWidth) Initializes the optional valueimageWidthto imageWidth.- Parameters:
imageWidth- The value for imageWidth- Returns:
thisbuilder for use in a chained invocation
-
bitsPerPixel
Initializes the optional valuebitsPerPixelto bitsPerPixel.- Parameters:
bitsPerPixel- The value for bitsPerPixel- Returns:
thisbuilder for chained invocation
-
bitsPerPixel
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies the sum of bits used for each color channel in the image in the image file, and thus the total number of pixels used for expressing the color depth of the image.") public final RasterImageFileExtension.Builder bitsPerPixel(Optional<Long> bitsPerPixel) Initializes the optional valuebitsPerPixelto bitsPerPixel.- Parameters:
bitsPerPixel- The value for bitsPerPixel- Returns:
thisbuilder for use in a chained invocation
-
imageCompressionAlgorithm
@CanIgnoreReturnValue public final RasterImageFileExtension.Builder imageCompressionAlgorithm(String imageCompressionAlgorithm) Initializes the optional valueimageCompressionAlgorithmto imageCompressionAlgorithm.- Parameters:
imageCompressionAlgorithm- The value for imageCompressionAlgorithm- Returns:
thisbuilder for chained invocation
-
imageCompressionAlgorithm
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies the name of the compression algorithm used to compress the image in the image file, if applicable.") public final RasterImageFileExtension.Builder imageCompressionAlgorithm(Optional<String> imageCompressionAlgorithm) Initializes the optional valueimageCompressionAlgorithmto imageCompressionAlgorithm.- Parameters:
imageCompressionAlgorithm- The value for imageCompressionAlgorithm- Returns:
thisbuilder for use in a chained invocation
-
putExifTag
@CanIgnoreReturnValue public final RasterImageFileExtension.Builder putExifTag(String key, Object value) Put one entry to theexifTagsmap.- Parameters:
key- The key in the exifTags mapvalue- The associated value in the exifTags map- Returns:
thisbuilder for use in a chained invocation
-
putExifTag
@CanIgnoreReturnValue public final RasterImageFileExtension.Builder putExifTag(Map.Entry<String, ? extends Object> entry) Put one entry to theexifTagsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
exifTags
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies the set of EXIF tags found in the image file, as a dictionary. Each key/value pair in the dictionary represents the name/value of a single EXIF tag.") public final RasterImageFileExtension.Builder exifTags(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for theexifTagsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the exifTags map- Returns:
thisbuilder for use in a chained invocation
-
putAllExifTags
@CanIgnoreReturnValue public final RasterImageFileExtension.Builder putAllExifTags(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries toexifTagsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the exifTags map- Returns:
thisbuilder for use in a chained invocation
-
type
Initializes the value for thetypeattribute.- Parameters:
type- The value for type (can benull)- Returns:
thisbuilder for use in a chained invocation
-
putCustomProperty
@CanIgnoreReturnValue public final RasterImageFileExtension.Builder putCustomProperty(String key, Object value) Put one entry to thecustomPropertiesmap.- Parameters:
key- The key in the customProperties mapvalue- The associated value in the customProperties map- Returns:
thisbuilder for use in a chained invocation
-
putCustomProperty
@CanIgnoreReturnValue public final RasterImageFileExtension.Builder putCustomProperty(Map.Entry<String, ? extends Object> entry) Put one entry to thecustomPropertiesmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
customProperties
@CanIgnoreReturnValue public final RasterImageFileExtension.Builder customProperties(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thecustomPropertiesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the customProperties map- Returns:
thisbuilder for use in a chained invocation
-
putAllCustomProperties
@CanIgnoreReturnValue public final RasterImageFileExtension.Builder putAllCustomProperties(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tocustomPropertiesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the customProperties map- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newRasterImageFileExtension.- Returns:
- An immutable instance of RasterImageFileExtension
- Throws:
IllegalStateException- if any required attributes are missing
-