/** * Creates a custom value for VirtualMachineSizeTypes. * @param skuName a SKU name * @param skuTier a SKU tier */ public VirtualMachineScaleSetSkuTypes(String skuName, String skuTier) { // TODO: This constructor should really be private this(new Sku().withName(skuName).withTier(skuTier)); }
/** * Creates a custom value for VirtualMachineSizeTypes. * @param skuName a SKU name * @param skuTier a SKU tier */ public VirtualMachineScaleSetSkuTypes(String skuName, String skuTier) { // TODO: This constructor should really be private this(new Sku().withName(skuName).withTier(skuTier)); }
/** * Parses into a VMSS SKU type and creates a new VMSS SKU type instance if not found among the existing ones. * @param skuName a SKU name * @param skuTier a SKU tier * @return a VMSS SKU type */ public static VirtualMachineScaleSetSkuTypes fromSkuNameAndTier(String skuName, String skuTier) { return fromSku(new Sku().withName(skuName).withTier(skuTier)); }
/** * Parses into a VMSS SKU type and creates a new VMSS SKU type instance if not found among the existing ones. * @param skuName a SKU name * @param skuTier a SKU tier * @return a VMSS SKU type */ public static VirtualMachineScaleSetSkuTypes fromSkuNameAndTier(String skuName, String skuTier) { return fromSku(new Sku().withName(skuName).withTier(skuTier)); }
/** * Creates a copy of the given sku. * * @param sku the sku to create copy of * @return the copy */ private static Sku createCopy(Sku sku) { return new Sku() .withName(sku.name()) .withTier(sku.tier()) .withCapacity(sku.capacity()); } }
/** * Creates a copy of the given sku. * * @param sku the sku to create copy of * @return the copy */ private static Sku createCopy(Sku sku) { return new Sku() .withName(sku.name()) .withTier(sku.tier()) .withCapacity(sku.capacity()); } }