Class PdfFileExtension.Builder
java.lang.Object
security.whisper.javastix.coo.extension.types.PdfFileExtension.Builder
- Enclosing class:
PdfFileExtension
Builds instances of type
PdfFileExtension.
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 TypeMethodDescriptionbuild()Builds a newPdfFileExtension.final PdfFileExtension.BuildercustomProperties(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thecustomPropertiesmap.final PdfFileExtension.BuilderdocumentInfoDict(Map<String, ? extends String> entries) Sets or replaces all mappings from the specified map as entries for thedocumentInfoDictmap.final PdfFileExtension.Builderfrom(StixCustomProperties instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixCustomPropertiesinstance.final PdfFileExtension.Builderfrom(CyberObservableExtensionCommonProperties instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.coo.extension.CyberObservableExtensionCommonPropertiesinstance.final PdfFileExtension.Builderfrom(PdfFileExtensionExt instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.coo.extension.types.PdfFileExtensionExtinstance.final PdfFileExtension.BuilderisOptimized(boolean isOptimized) Initializes the optional valueisOptimizedto isOptimized.final PdfFileExtension.BuilderisOptimized(Optional<Boolean> isOptimized) Initializes the optional valueisOptimizedto isOptimized.final PdfFileExtension.BuilderInitializes the optional valuepdfId0to pdfId0.final PdfFileExtension.BuilderInitializes the optional valuepdfId0to pdfId0.final PdfFileExtension.BuilderInitializes the optional valuepdfId1to pdfId1.final PdfFileExtension.BuilderInitializes the optional valuepdfId1to pdfId1.final PdfFileExtension.BuilderputAllCustomProperties(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tocustomPropertiesmap.final PdfFileExtension.BuilderputAllDocumentInfoDict(Map<String, ? extends String> entries) Put all mappings from the specified map as entries todocumentInfoDictmap.final PdfFileExtension.BuilderputCustomProperty(String key, Object value) Put one entry to thecustomPropertiesmap.final PdfFileExtension.BuilderputCustomProperty(Map.Entry<String, ? extends Object> entry) Put one entry to thecustomPropertiesmap.final PdfFileExtension.BuilderputDocumentInfoDict(String key, String value) Put one entry to thedocumentInfoDictmap.final PdfFileExtension.BuilderputDocumentInfoDict(Map.Entry<String, ? extends String> entry) Put one entry to thedocumentInfoDictmap.final PdfFileExtension.BuilderInitializes the value for thetypeattribute.final PdfFileExtension.BuilderInitializes the optional valueversionto version.final PdfFileExtension.BuilderInitializes the optional valueversionto version.
-
Method Details
-
from
Fill a builder with attribute values from the providedsecurity.whisper.javastix.coo.extension.types.PdfFileExtensionExtinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
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 PdfFileExtension.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
-
version
Initializes the optional valueversionto version.- Parameters:
version- The value for version- Returns:
thisbuilder for chained invocation
-
version
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies the decimal version number of the Optional<String> from the PDF header that specifies the version of the PDF specification to which the PDF file conforms. E.g., \'1.4\'.") public final PdfFileExtension.Builder version(Optional<String> version) Initializes the optional valueversionto version.- Parameters:
version- The value for version- Returns:
thisbuilder for use in a chained invocation
-
isOptimized
Initializes the optional valueisOptimizedto isOptimized.- Parameters:
isOptimized- The value for isOptimized- Returns:
thisbuilder for chained invocation
-
isOptimized
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies whether the PDF file has been optimized.") public final PdfFileExtension.Builder isOptimized(Optional<Boolean> isOptimized) Initializes the optional valueisOptimizedto isOptimized.- Parameters:
isOptimized- The value for isOptimized- Returns:
thisbuilder for use in a chained invocation
-
putDocumentInfoDict
@CanIgnoreReturnValue public final PdfFileExtension.Builder putDocumentInfoDict(String key, String value) Put one entry to thedocumentInfoDictmap.- Parameters:
key- The key in the documentInfoDict mapvalue- The associated value in the documentInfoDict map- Returns:
thisbuilder for use in a chained invocation
-
putDocumentInfoDict
@CanIgnoreReturnValue public final PdfFileExtension.Builder putDocumentInfoDict(Map.Entry<String, ? extends String> entry) Put one entry to thedocumentInfoDictmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
documentInfoDict
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies details of the PDF document information dictionary (DID), which includes properties like the document creation data and producer, as a dictionary.") public final PdfFileExtension.Builder documentInfoDict(Map<String, ? extends String> entries) Sets or replaces all mappings from the specified map as entries for thedocumentInfoDictmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the documentInfoDict map- Returns:
thisbuilder for use in a chained invocation
-
putAllDocumentInfoDict
@CanIgnoreReturnValue public final PdfFileExtension.Builder putAllDocumentInfoDict(Map<String, ? extends String> entries) Put all mappings from the specified map as entries todocumentInfoDictmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the documentInfoDict map- Returns:
thisbuilder for use in a chained invocation
-
pdfId0
Initializes the optional valuepdfId0to pdfId0.- Parameters:
pdfId0- The value for pdfId0- Returns:
thisbuilder for chained invocation
-
pdfId0
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies the first file identifier found for the PDF file.") public final PdfFileExtension.Builder pdfId0(Optional<String> pdfId0) Initializes the optional valuepdfId0to pdfId0.- Parameters:
pdfId0- The value for pdfId0- Returns:
thisbuilder for use in a chained invocation
-
pdfId1
Initializes the optional valuepdfId1to pdfId1.- Parameters:
pdfId1- The value for pdfId1- Returns:
thisbuilder for chained invocation
-
pdfId1
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies the second file identifier found for the PDF file.") public final PdfFileExtension.Builder pdfId1(Optional<String> pdfId1) Initializes the optional valuepdfId1to pdfId1.- Parameters:
pdfId1- The value for pdfId1- 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 PdfFileExtension.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 PdfFileExtension.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 PdfFileExtension.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 PdfFileExtension.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 newPdfFileExtension.- Returns:
- An immutable instance of PdfFileExtension
- Throws:
IllegalStateException- if any required attributes are missing
-