com.azure.resourcemanager.hybridcompute.models.MachineExtensionInstanceView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-hybridcompute Show documentation
Show all versions of azure-resourcemanager-hybridcompute Show documentation
This package contains Microsoft Azure SDK for HybridCompute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Hybrid Compute Management Client. Package tag package-preview-2024-07.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Describes the Machine Extension Instance View.
*/
@Fluent
public final class MachineExtensionInstanceView {
/*
* The machine extension name.
*/
@JsonProperty(value = "name")
private String name;
/*
* Specifies the type of the extension; an example is "CustomScriptExtension".
*/
@JsonProperty(value = "type")
private String type;
/*
* Specifies the version of the script handler.
*/
@JsonProperty(value = "typeHandlerVersion")
private String typeHandlerVersion;
/*
* Instance view status.
*/
@JsonProperty(value = "status")
private MachineExtensionInstanceViewStatus status;
/**
* Creates an instance of MachineExtensionInstanceView class.
*/
public MachineExtensionInstanceView() {
}
/**
* Get the name property: The machine extension name.
*
* @return the name value.
*/
public String name() {
return this.name;
}
/**
* Set the name property: The machine extension name.
*
* @param name the name value to set.
* @return the MachineExtensionInstanceView object itself.
*/
public MachineExtensionInstanceView withName(String name) {
this.name = name;
return this;
}
/**
* Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
*
* @return the type value.
*/
public String type() {
return this.type;
}
/**
* Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
*
* @param type the type value to set.
* @return the MachineExtensionInstanceView object itself.
*/
public MachineExtensionInstanceView withType(String type) {
this.type = type;
return this;
}
/**
* Get the typeHandlerVersion property: Specifies the version of the script handler.
*
* @return the typeHandlerVersion value.
*/
public String typeHandlerVersion() {
return this.typeHandlerVersion;
}
/**
* Set the typeHandlerVersion property: Specifies the version of the script handler.
*
* @param typeHandlerVersion the typeHandlerVersion value to set.
* @return the MachineExtensionInstanceView object itself.
*/
public MachineExtensionInstanceView withTypeHandlerVersion(String typeHandlerVersion) {
this.typeHandlerVersion = typeHandlerVersion;
return this;
}
/**
* Get the status property: Instance view status.
*
* @return the status value.
*/
public MachineExtensionInstanceViewStatus status() {
return this.status;
}
/**
* Set the status property: Instance view status.
*
* @param status the status value to set.
* @return the MachineExtensionInstanceView object itself.
*/
public MachineExtensionInstanceView withStatus(MachineExtensionInstanceViewStatus status) {
this.status = status;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (status() != null) {
status().validate();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy