Codota Logo
SubResource
Code IndexAdd Codota to your IDE (free)

How to use
SubResource
in
com.microsoft.azure

Best Java code snippets using com.microsoft.azure.SubResource (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: com.microsoft.azure/azure-mgmt-network

@Override
public TopologyImpl withTargetNetwork(String networkId) {
  parameters.withTargetVirtualNetwork(new SubResource().withId(networkId));
  return this;
}
origin: com.microsoft.azure/azure-mgmt-compute

@Override
public Set<String> virtualMachineIds() {
  if (idOfVMsInSet == null) {
    idOfVMsInSet = new HashSet<>();
    for (SubResource resource : this.inner().virtualMachines()) {
      idOfVMsInSet.add(resource.id());
    }
  }
  return Collections.unmodifiableSet(idOfVMsInSet);
}
origin: com.microsoft.azure/azure-mgmt-network

@Override
public TopologyImpl withTargetSubnet(String subnetName) {
  parameters.withTargetSubnet(new SubResource().withId(parameters.targetVirtualNetwork().id() + "/subnets/" + subnetName));
  return this;
}
origin: Azure/azure-libraries-for-java

@Override
public TopologyImpl withTargetSubnet(String subnetName) {
  parameters.withTargetSubnet(new SubResource().withId(parameters.targetVirtualNetwork().id() + "/subnets/" + subnetName));
  return this;
}
origin: com.microsoft.azure/azure-mgmt-network

@Override
public VirtualNetworkGatewayIPConfigurationImpl withExistingSubnet(String networkId, String subnetName) {
  SubResource subnetRef = new SubResource().withId(networkId + "/subnets/" + subnetName);
  this.inner().withSubnet(subnetRef);
  return this;
}
origin: com.microsoft.azure/azure-mgmt-compute

private static void removeAllBackendAssociationFromIpConfiguration(LoadBalancer loadBalancer,
                                  VirtualMachineScaleSetIPConfiguration ipConfig) {
  List<SubResource> toRemove = new ArrayList<>();
  for (SubResource subResource : ipConfig.loadBalancerBackendAddressPools()) {
    if (subResource.id().toLowerCase().startsWith(loadBalancer.id().toLowerCase() + "/")) {
      toRemove.add(subResource);
    }
  }
  for (SubResource subResource : toRemove) {
    ipConfig.loadBalancerBackendAddressPools().remove(subResource);
  }
}
origin: com.microsoft.azure/azure-mgmt-network

@Override
public ApplicationGatewayIPConfigurationImpl withExistingSubnet(String networkId, String subnetName) {
  SubResource subnetRef = new SubResource().withId(networkId + "/subnets/" + subnetName);
  this.inner().withSubnet(subnetRef);
  return this;
}
origin: com.microsoft.azure/azure-mgmt-compute

@Override
public List<String> applicationGatewayBackendAddressPoolsIds() {
  VirtualMachineScaleSetIPConfiguration nicIpConfig = this.primaryNicDefaultIPConfiguration();
  List<SubResource> backendPools = nicIpConfig.applicationGatewayBackendAddressPools();
  List<String> result = new ArrayList<>();
  if (backendPools != null) {
    for (SubResource backendPool : backendPools) {
      result.add(backendPool.id());
    }
  }
  return result;
}
origin: com.microsoft.azure/azure-mgmt-compute

@Override
public CustomImageDataDiskImpl fromSnapshot(String sourceSnapshotId) {
  this.inner().withSnapshot(new SubResource().withId(sourceSnapshotId));
  return this;
}
origin: com.microsoft.azure/azure-mgmt-network

@Override
public String networkId() {
  SubResource subnetRef = defaultSubnetRef();
  if (subnetRef == null) {
    return null;
  } else {
    return ResourceUtils.parentResourceIdFromResourceId(subnetRef.id());
  }
}
origin: com.microsoft.azure/azure-mgmt-compute

@Override
public CustomImageDataDiskImpl fromManagedDisk(String sourceManagedDiskId) {
  this.inner().withManagedDisk(new SubResource().withId(sourceManagedDiskId));
  return this;
}
origin: com.microsoft.azure/azure-mgmt-network

@Override
public String subnetName() {
  SubResource subnetRef = defaultSubnetRef();
  if (subnetRef == null) {
    return null;
  } else {
    return ResourceUtils.nameFromResourceId(subnetRef.id());
  }
}
origin: com.microsoft.azure/azure-mgmt-compute

@Override
public VirtualMachineScaleSetImpl withExistingNetworkSecurityGroupId(String networkSecurityGroupId) {
  VirtualMachineScaleSetNetworkConfiguration nicConfig = this.primaryNicConfiguration();
  nicConfig.withNetworkSecurityGroup(new SubResource().withId(networkSecurityGroupId));
  return this;
}
origin: Azure/azure-libraries-for-java

@Override
public String networkId() {
  SubResource subnetRef = defaultSubnetRef();
  if (subnetRef == null) {
    return null;
  } else {
    return ResourceUtils.parentResourceIdFromResourceId(subnetRef.id());
  }
}
origin: com.microsoft.azure/azure-mgmt-network

  @Override
  public VirtualNetworkGatewayIPConfigurationImpl withExistingPublicIPAddress(String resourceId) {
    SubResource pipRef = new SubResource().withId(resourceId);
    this.inner().withPublicIPAddress(pipRef);
    return this;
  }
}
origin: com.microsoft.azure/azure-mgmt-network

@Override
public String subnetName() {
  SubResource subnetRef = this.inner().subnet();
  if (subnetRef == null) {
    return null;
  }
  return ResourceUtils.nameFromResourceId(subnetRef.id());
}
origin: com.microsoft.azure/azure-mgmt-network

@Override
public NetworkPeeringImpl withRemoteNetwork(String resourceId) {
  SubResource networkRef = new SubResource().withId(resourceId);
  this.inner().withRemoteVirtualNetwork(networkRef);
  return this;
}
origin: com.microsoft.azure/azure-mgmt-network

@Override
public String subnetName() {
  SubResource subnetRef = this.inner().subnet();
  if (subnetRef != null) {
    return ResourceUtils.nameFromResourceId(subnetRef.id());
  } else {
    return null;
  }
}
origin: Azure/azure-libraries-for-java

@Override
public ApplicationGatewayIPConfigurationImpl withExistingSubnet(String networkId, String subnetName) {
  SubResource subnetRef = new SubResource().withId(networkId + "/subnets/" + subnetName);
  this.inner().withSubnet(subnetRef);
  return this;
}
origin: com.microsoft.azure/azure-mgmt-network

@Override
public String subnetName() {
  SubResource subnetRef = this.inner().subnet();
  if (subnetRef != null) {
    return ResourceUtils.nameFromResourceId(subnetRef.id());
  } else {
    return null;
  }
}
com.microsoft.azureSubResource

Most used methods

  • <init>
  • id
  • withId

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now