/** * @return the SKU */ public Sku sku() { // Return copy of sku to guard VirtualMachineScaleSetSkuTypes from ending up with invalid // sku in case consumer changes the returned Sku instance. // return createCopy(this.sku); }
/** * @return the SKU */ public Sku sku() { // Return copy of sku to guard VirtualMachineScaleSetSkuTypes from ending up with invalid // sku in case consumer changes the returned Sku instance. // return createCopy(this.sku); }
/** * Creates a custom value for VirtualMachineSizeTypes. * @param sku the SKU */ public VirtualMachineScaleSetSkuTypes(Sku sku) { // TODO: This constructor should really be private // Store Sku copy since original user provided sku can be modified // by the user. // this.sku = createCopy(sku); if (this.sku.tier() == null) { this.value = this.sku.name(); } else { this.value = this.sku.name() + '_' + this.sku.tier(); } VALUES_BY_NAME.put(this.value.toLowerCase(), this); }
/** * Creates a custom value for VirtualMachineSizeTypes. * @param sku the SKU */ public VirtualMachineScaleSetSkuTypes(Sku sku) { // TODO: This constructor should really be private // Store Sku copy since original user provided sku can be modified // by the user. // this.sku = createCopy(sku); if (this.sku.tier() == null) { this.value = this.sku.name(); } else { this.value = this.sku.name() + '_' + this.sku.tier(); } VALUES_BY_NAME.put(this.value.toLowerCase(), this); }