AdditionalUnattendContent Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. AdditionalUnattendContent
- com.
Implements
public final class AdditionalUnattendContent
implements JsonSerializable<AdditionalUnattendContent>
Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied.
Constructor Summary
Constructor | Description |
---|---|
AdditionalUnattendContent() |
Creates an instance of Additional |
Method Summary
Modifier and Type | Method and Description |
---|---|
Component |
componentName()
Get the component |
String |
content()
Get the content property: Specifies the XML formatted content that is added to the unattend. |
static
Additional |
fromJson(JsonReader jsonReader)
Reads an instance of Additional |
Pass |
passName()
Get the pass |
Setting |
settingName()
Get the setting |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Additional |
withComponentName(ComponentNames componentName)
Set the component |
Additional |
withContent(String content)
Set the content property: Specifies the XML formatted content that is added to the unattend. |
Additional |
withPassName(PassNames passName)
Set the pass |
Additional |
withSettingName(SettingNames settingName)
Set the setting |
Methods inherited from java.lang.Object
Constructor Details
AdditionalUnattendContent
public AdditionalUnattendContent()
Creates an instance of AdditionalUnattendContent class.
Method Details
componentName
public ComponentNames componentName()
Get the componentName property: The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup.
Returns:
content
public String content()
Get the content property: Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted.
Returns:
fromJson
public static AdditionalUnattendContent fromJson(JsonReader jsonReader)
Reads an instance of AdditionalUnattendContent from the JsonReader.
Parameters:
Returns:
Throws:
passName
public PassNames passName()
Get the passName property: The pass name. Currently, the only allowable value is OobeSystem.
Returns:
settingName
public SettingNames settingName()
Get the settingName property: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon.
Returns:
toJson
validate
public void validate()
Validates the instance.
withComponentName
public AdditionalUnattendContent withComponentName(ComponentNames componentName)
Set the componentName property: The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup.
Parameters:
Returns:
withContent
public AdditionalUnattendContent withContent(String content)
Set the content property: Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted.
Parameters:
Returns:
withPassName
public AdditionalUnattendContent withPassName(PassNames passName)
Set the passName property: The pass name. Currently, the only allowable value is OobeSystem.
Parameters:
Returns:
withSettingName
public AdditionalUnattendContent withSettingName(SettingNames settingName)
Set the settingName property: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon.
Parameters:
Returns:
Applies to
Azure SDK for Java