Search in sources :

Example 6 with SubResource

use of com.microsoft.azure.SubResource in project azure-sdk-for-java by Azure.

the class ApplicationGatewayListenerImpl method sslCertificate.

@Override
public ApplicationGatewaySslCertificate sslCertificate() {
    SubResource certRef = this.inner().sslCertificate();
    if (certRef == null) {
        return null;
    }
    String name = ResourceUtils.nameFromResourceId(certRef.id());
    return this.parent().sslCertificates().get(name);
}
Also used : SubResource(com.microsoft.azure.SubResource)

Example 7 with SubResource

use of com.microsoft.azure.SubResource in project azure-sdk-for-java by Azure.

the class ApplicationGatewayRequestRoutingRuleImpl method toBackend.

@Override
public ApplicationGatewayRequestRoutingRuleImpl toBackend(String name) {
    SubResource backendRef = new SubResource().withId(this.parent().futureResourceId() + "/backendAddressPools/" + name);
    this.inner().withBackendAddressPool(backendRef);
    return this;
}
Also used : SubResource(com.microsoft.azure.SubResource)

Example 8 with SubResource

use of com.microsoft.azure.SubResource in project azure-sdk-for-java by Azure.

the class ApplicationGatewayRequestRoutingRuleImpl method toBackendHttpConfiguration.

// --- Backend HTTP config handling
@Override
public ApplicationGatewayRequestRoutingRuleImpl toBackendHttpConfiguration(String name) {
    SubResource httpConfigRef = new SubResource().withId(this.parent().futureResourceId() + "/backendHttpSettingsCollection/" + name);
    this.inner().withBackendHttpSettings(httpConfigRef);
    return this;
}
Also used : SubResource(com.microsoft.azure.SubResource)

Example 9 with SubResource

use of com.microsoft.azure.SubResource in project azure-sdk-for-java by Azure.

the class ApplicationGatewayRequestRoutingRuleImpl method fromListener.

// --- Listener handling
@Override
public ApplicationGatewayRequestRoutingRuleImpl fromListener(String name) {
    SubResource listenerRef = new SubResource().withId(this.parent().futureResourceId() + "/HTTPListeners/" + name);
    this.inner().withHttpListener(listenerRef);
    return this;
}
Also used : SubResource(com.microsoft.azure.SubResource)

Example 10 with SubResource

use of com.microsoft.azure.SubResource in project azure-sdk-for-java by Azure.

the class LoadBalancingRuleImpl method withProbe.

@Override
public LoadBalancingRuleImpl withProbe(String name) {
    SubResource probeRef = new SubResource().withId(this.parent().futureResourceId() + "/probes/" + name);
    this.inner().withProbe(probeRef);
    return this;
}
Also used : SubResource(com.microsoft.azure.SubResource)

Aggregations

SubResource (com.microsoft.azure.SubResource)38 ArrayList (java.util.ArrayList)5 TreeMap (java.util.TreeMap)5 LoadBalancingRule (com.microsoft.azure.management.network.LoadBalancingRule)4 LoadBalancerInboundNatPool (com.microsoft.azure.management.network.LoadBalancerInboundNatPool)3 HashMap (java.util.HashMap)3 IPAllocationMethod (com.microsoft.azure.management.network.IPAllocationMethod)2 PublicIPAddressInner (com.microsoft.azure.management.network.implementation.PublicIPAddressInner)2 SubnetInner (com.microsoft.azure.management.network.implementation.SubnetInner)2 CloudError (com.microsoft.azure.CloudError)1 CloudException (com.microsoft.azure.CloudException)1 ApplicationTokenCredentials (com.microsoft.azure.credentials.ApplicationTokenCredentials)1 AvailabilitySet (com.microsoft.azure.management.compute.AvailabilitySet)1 AvailabilitySetSkuTypes (com.microsoft.azure.management.compute.AvailabilitySetSkuTypes)1 CachingTypes (com.microsoft.azure.management.compute.CachingTypes)1 DataDisk (com.microsoft.azure.management.compute.DataDisk)1 Disk (com.microsoft.azure.management.compute.Disk)1 DiskCreateOptionTypes (com.microsoft.azure.management.compute.DiskCreateOptionTypes)1 HardwareProfile (com.microsoft.azure.management.compute.HardwareProfile)1 NetworkProfile (com.microsoft.azure.management.compute.NetworkProfile)1