Interface TemplateV2.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TemplateV2.Builder,TemplateV2>,SdkBuilder<TemplateV2.Builder,TemplateV2>,SdkPojo
- Enclosing class:
- TemplateV2
public static interface TemplateV2.Builder extends SdkPojo, CopyableBuilder<TemplateV2.Builder,TemplateV2>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TemplateV2.BuildercertificateValidity(Consumer<CertificateValidity.Builder> certificateValidity)Certificate validity describes the validity and renewal periods of a certificate.TemplateV2.BuildercertificateValidity(CertificateValidity certificateValidity)Certificate validity describes the validity and renewal periods of a certificate.default TemplateV2.BuilderenrollmentFlags(Consumer<EnrollmentFlagsV2.Builder> enrollmentFlags)Enrollment flags describe the enrollment settings for certificates such as using the existing private key and deleting expired or revoked certificates.TemplateV2.BuilderenrollmentFlags(EnrollmentFlagsV2 enrollmentFlags)Enrollment flags describe the enrollment settings for certificates such as using the existing private key and deleting expired or revoked certificates.default TemplateV2.Builderextensions(Consumer<ExtensionsV2.Builder> extensions)Extensions describe the key usage extensions and application policies for a template.TemplateV2.Builderextensions(ExtensionsV2 extensions)Extensions describe the key usage extensions and application policies for a template.default TemplateV2.BuildergeneralFlags(Consumer<GeneralFlagsV2.Builder> generalFlags)General flags describe whether the template is used for computers or users and if the template can be used with autoenrollment.TemplateV2.BuildergeneralFlags(GeneralFlagsV2 generalFlags)General flags describe whether the template is used for computers or users and if the template can be used with autoenrollment.default TemplateV2.BuilderprivateKeyAttributes(Consumer<PrivateKeyAttributesV2.Builder> privateKeyAttributes)Private key attributes allow you to specify the minimal key length, key spec, and cryptographic providers for the private key of a certificate for v2 templates.TemplateV2.BuilderprivateKeyAttributes(PrivateKeyAttributesV2 privateKeyAttributes)Private key attributes allow you to specify the minimal key length, key spec, and cryptographic providers for the private key of a certificate for v2 templates.default TemplateV2.BuilderprivateKeyFlags(Consumer<PrivateKeyFlagsV2.Builder> privateKeyFlags)Private key flags for v2 templates specify the client compatibility, if the private key can be exported, and if user input is required when using a private key.TemplateV2.BuilderprivateKeyFlags(PrivateKeyFlagsV2 privateKeyFlags)Private key flags for v2 templates specify the client compatibility, if the private key can be exported, and if user input is required when using a private key.default TemplateV2.BuildersubjectNameFlags(Consumer<SubjectNameFlagsV2.Builder> subjectNameFlags)Subject name flags describe the subject name and subject alternate name that is included in a certificate.TemplateV2.BuildersubjectNameFlags(SubjectNameFlagsV2 subjectNameFlags)Subject name flags describe the subject name and subject alternate name that is included in a certificate.TemplateV2.BuildersupersededTemplates(String... supersededTemplates)List of templates in Active Directory that are superseded by this template.TemplateV2.BuildersupersededTemplates(Collection<String> supersededTemplates)List of templates in Active Directory that are superseded by this template.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
certificateValidity
TemplateV2.Builder certificateValidity(CertificateValidity certificateValidity)
Certificate validity describes the validity and renewal periods of a certificate.
- Parameters:
certificateValidity- Certificate validity describes the validity and renewal periods of a certificate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateValidity
default TemplateV2.Builder certificateValidity(Consumer<CertificateValidity.Builder> certificateValidity)
Certificate validity describes the validity and renewal periods of a certificate.
This is a convenience method that creates an instance of theCertificateValidity.Builderavoiding the need to create one manually viaCertificateValidity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocertificateValidity(CertificateValidity).- Parameters:
certificateValidity- a consumer that will call methods onCertificateValidity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
certificateValidity(CertificateValidity)
-
enrollmentFlags
TemplateV2.Builder enrollmentFlags(EnrollmentFlagsV2 enrollmentFlags)
Enrollment flags describe the enrollment settings for certificates such as using the existing private key and deleting expired or revoked certificates.
- Parameters:
enrollmentFlags- Enrollment flags describe the enrollment settings for certificates such as using the existing private key and deleting expired or revoked certificates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enrollmentFlags
default TemplateV2.Builder enrollmentFlags(Consumer<EnrollmentFlagsV2.Builder> enrollmentFlags)
Enrollment flags describe the enrollment settings for certificates such as using the existing private key and deleting expired or revoked certificates.
This is a convenience method that creates an instance of theEnrollmentFlagsV2.Builderavoiding the need to create one manually viaEnrollmentFlagsV2.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toenrollmentFlags(EnrollmentFlagsV2).- Parameters:
enrollmentFlags- a consumer that will call methods onEnrollmentFlagsV2.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
enrollmentFlags(EnrollmentFlagsV2)
-
extensions
TemplateV2.Builder extensions(ExtensionsV2 extensions)
Extensions describe the key usage extensions and application policies for a template.
- Parameters:
extensions- Extensions describe the key usage extensions and application policies for a template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
extensions
default TemplateV2.Builder extensions(Consumer<ExtensionsV2.Builder> extensions)
Extensions describe the key usage extensions and application policies for a template.
This is a convenience method that creates an instance of theExtensionsV2.Builderavoiding the need to create one manually viaExtensionsV2.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toextensions(ExtensionsV2).- Parameters:
extensions- a consumer that will call methods onExtensionsV2.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
extensions(ExtensionsV2)
-
generalFlags
TemplateV2.Builder generalFlags(GeneralFlagsV2 generalFlags)
General flags describe whether the template is used for computers or users and if the template can be used with autoenrollment.
- Parameters:
generalFlags- General flags describe whether the template is used for computers or users and if the template can be used with autoenrollment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
generalFlags
default TemplateV2.Builder generalFlags(Consumer<GeneralFlagsV2.Builder> generalFlags)
General flags describe whether the template is used for computers or users and if the template can be used with autoenrollment.
This is a convenience method that creates an instance of theGeneralFlagsV2.Builderavoiding the need to create one manually viaGeneralFlagsV2.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togeneralFlags(GeneralFlagsV2).- Parameters:
generalFlags- a consumer that will call methods onGeneralFlagsV2.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
generalFlags(GeneralFlagsV2)
-
privateKeyAttributes
TemplateV2.Builder privateKeyAttributes(PrivateKeyAttributesV2 privateKeyAttributes)
Private key attributes allow you to specify the minimal key length, key spec, and cryptographic providers for the private key of a certificate for v2 templates. V2 templates allow you to use Legacy Cryptographic Service Providers.
- Parameters:
privateKeyAttributes- Private key attributes allow you to specify the minimal key length, key spec, and cryptographic providers for the private key of a certificate for v2 templates. V2 templates allow you to use Legacy Cryptographic Service Providers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateKeyAttributes
default TemplateV2.Builder privateKeyAttributes(Consumer<PrivateKeyAttributesV2.Builder> privateKeyAttributes)
Private key attributes allow you to specify the minimal key length, key spec, and cryptographic providers for the private key of a certificate for v2 templates. V2 templates allow you to use Legacy Cryptographic Service Providers.
This is a convenience method that creates an instance of thePrivateKeyAttributesV2.Builderavoiding the need to create one manually viaPrivateKeyAttributesV2.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprivateKeyAttributes(PrivateKeyAttributesV2).- Parameters:
privateKeyAttributes- a consumer that will call methods onPrivateKeyAttributesV2.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
privateKeyAttributes(PrivateKeyAttributesV2)
-
privateKeyFlags
TemplateV2.Builder privateKeyFlags(PrivateKeyFlagsV2 privateKeyFlags)
Private key flags for v2 templates specify the client compatibility, if the private key can be exported, and if user input is required when using a private key.
- Parameters:
privateKeyFlags- Private key flags for v2 templates specify the client compatibility, if the private key can be exported, and if user input is required when using a private key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateKeyFlags
default TemplateV2.Builder privateKeyFlags(Consumer<PrivateKeyFlagsV2.Builder> privateKeyFlags)
Private key flags for v2 templates specify the client compatibility, if the private key can be exported, and if user input is required when using a private key.
This is a convenience method that creates an instance of thePrivateKeyFlagsV2.Builderavoiding the need to create one manually viaPrivateKeyFlagsV2.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprivateKeyFlags(PrivateKeyFlagsV2).- Parameters:
privateKeyFlags- a consumer that will call methods onPrivateKeyFlagsV2.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
privateKeyFlags(PrivateKeyFlagsV2)
-
subjectNameFlags
TemplateV2.Builder subjectNameFlags(SubjectNameFlagsV2 subjectNameFlags)
Subject name flags describe the subject name and subject alternate name that is included in a certificate.
- Parameters:
subjectNameFlags- Subject name flags describe the subject name and subject alternate name that is included in a certificate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subjectNameFlags
default TemplateV2.Builder subjectNameFlags(Consumer<SubjectNameFlagsV2.Builder> subjectNameFlags)
Subject name flags describe the subject name and subject alternate name that is included in a certificate.
This is a convenience method that creates an instance of theSubjectNameFlagsV2.Builderavoiding the need to create one manually viaSubjectNameFlagsV2.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosubjectNameFlags(SubjectNameFlagsV2).- Parameters:
subjectNameFlags- a consumer that will call methods onSubjectNameFlagsV2.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
subjectNameFlags(SubjectNameFlagsV2)
-
supersededTemplates
TemplateV2.Builder supersededTemplates(Collection<String> supersededTemplates)
List of templates in Active Directory that are superseded by this template.
- Parameters:
supersededTemplates- List of templates in Active Directory that are superseded by this template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supersededTemplates
TemplateV2.Builder supersededTemplates(String... supersededTemplates)
List of templates in Active Directory that are superseded by this template.
- Parameters:
supersededTemplates- List of templates in Active Directory that are superseded by this template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-