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);
}
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;
}
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;
}
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;
}
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;
}
Aggregations