@Override public VirtualMachineImpl withWinRM(WinRMListener listener) { if (this.inner().osProfile().windowsConfiguration().winRM() == null) { WinRMConfiguration winRMConfiguration = new WinRMConfiguration(); this.inner().osProfile().windowsConfiguration().withWinRM(winRMConfiguration); } this.inner().osProfile() .windowsConfiguration() .winRM() .listeners() .add(listener); return this; }
@Override public VirtualMachineImpl withWinRM(WinRMListener listener) { if (this.inner().osProfile().windowsConfiguration().winRM() == null) { WinRMConfiguration winRMConfiguration = new WinRMConfiguration(); this.inner().osProfile().windowsConfiguration().withWinRM(winRMConfiguration); } this.inner().osProfile() .windowsConfiguration() .winRM() .listeners() .add(listener); return this; }
@Override public VirtualMachineScaleSetImpl withWinRM(WinRMListener listener) { if (this.inner().virtualMachineProfile().osProfile().windowsConfiguration().winRM() == null) { WinRMConfiguration winRMConfiguration = new WinRMConfiguration(); this.inner() .virtualMachineProfile() .osProfile().windowsConfiguration().withWinRM(winRMConfiguration); } this.inner() .virtualMachineProfile() .osProfile() .windowsConfiguration() .winRM() .listeners() .add(listener); return this; }
@Override public VirtualMachineScaleSetImpl withWinRM(WinRMListener listener) { if (this.inner().virtualMachineProfile().osProfile().windowsConfiguration().winRM() == null) { WinRMConfiguration winRMConfiguration = new WinRMConfiguration(); this.inner() .virtualMachineProfile() .osProfile().windowsConfiguration().withWinRM(winRMConfiguration); } this.inner() .virtualMachineProfile() .osProfile() .windowsConfiguration() .winRM() .listeners() .add(listener); return this; }