com.microsoft.azure.management.network.ApplicationGatewaySslCertificate Maven / Gradle / Ivy
Show all versions of azure-mgmt-network Show documentation
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.network;
import java.io.File;
import java.io.IOException;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.network.implementation.ApplicationGatewaySslCertificateInner;
import com.microsoft.azure.management.resources.fluentcore.arm.models.ChildResource;
import com.microsoft.azure.management.resources.fluentcore.model.Attachable;
import com.microsoft.azure.management.resources.fluentcore.model.Settable;
import com.microsoft.azure.management.resources.fluentcore.model.HasInner;
/**
* A client-side representation of an application gateway SSL certificate.
*/
@Fluent()
public interface ApplicationGatewaySslCertificate extends
HasInner,
ChildResource {
/**
* @return the public data of the certificate
*/
String publicData();
/**
* Grouping of application gateway SSL certificate definition stages.
*/
interface DefinitionStages {
/**
* The first stage of an application gateway SSL certificate.
* @param the parent application gateway type
*/
interface Blank extends WithData {
}
/** The final stage of an application gateway SSL certificate definition.
*
* At this stage, any remaining optional settings can be specified, or the definition
* can be attached to the parent application gateway definition.
* @param the stage of the parent application gateway definition to return to after attaching
*/
interface WithAttach extends
Attachable.InDefinition {
}
/**
* The stage of an SSL certificate definition allowing to specify the contents of the SSL certificate.
* @param the stage of the parent application gateway to return to after attaching
*/
interface WithData {
/**
* Specifies the contents of the private key in the PFX (PKCS#12) format, not base64-encoded.
* @param pfxData the contents of the private key in the PFX format
* @return the next stage of the definition
*/
WithPassword withPfxFromBytes(byte[] pfxData);
/**
* Specifies the PFX (PKCS#12) file to get the private key content from.
* @param pfxFile a file in the PFX format
* @return the next stage of the definition
* @throws java.io.IOException when there are problems with the provided file
*/
WithPassword withPfxFromFile(File pfxFile) throws IOException;
}
/**
* The stage of an SSL certificate definition allowing to specify the password for the private key (PFX) content of the certificate.
* @param the stage of the parent application gateway to return to after attaching
*/
interface WithPassword {
/**
* Specifies the password currently used to protect the provided PFX content of the SSL certificate.
* @param password a password
* @return the next stage of the definition
*/
WithAttach withPfxPassword(String password);
}
}
/** The entirety of an application gateway SSL certificate definition.
* @param the stage of the parent application gateway definition to return to after attaching
*/
interface Definition extends
DefinitionStages.Blank,
DefinitionStages.WithAttach,
DefinitionStages.WithData,
DefinitionStages.WithPassword {
}
/**
* Grouping of application gateway SSL certificate update stages.
*/
interface UpdateStages {
}
/**
* The entirety of an application gateway SSL certificate update as part of an application gateway update.
*/
interface Update extends
Settable {
}
/**
* Grouping of application gateway SSL certificate definition stages applicable as part of an application gateway update.
*/
interface UpdateDefinitionStages {
/**
* The first stage of an application gateway authentication certificate definition.
* @param the stage of the parent application gateway definition to return to after attaching
*/
interface Blank extends WithAttach {
}
/** The final stage of an application gateway SSL certificate definition.
*
* At this stage, any remaining optional settings can be specified, or the definition
* can be attached to the parent application gateway definition.
* @param the stage of the parent application gateway definition to return to after attaching
*/
interface WithAttach extends
Attachable.InUpdate {
}
}
/** The entirety of an application gateway SSL certificate definition as part of an application gateway update.
* @param the stage of the parent application gateway definition to return to after attaching
*/
interface UpdateDefinition extends
UpdateDefinitionStages.Blank,
UpdateDefinitionStages.WithAttach {
}
}