Partilhar via


AdditionalUnattendContent Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.AdditionalUnattendContent

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 AdditionalUnattendContent class.

Method Summary

Modifier and Type Method and Description
ComponentNames componentName()

Get the componentName property: The component name.

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.

static AdditionalUnattendContent fromJson(JsonReader jsonReader)

Reads an instance of AdditionalUnattendContent from the JsonReader.

PassNames passName()

Get the passName property: The pass name.

SettingNames settingName()

Get the settingName property: Specifies the name of the setting to which the content applies.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AdditionalUnattendContent withComponentName(ComponentNames componentName)

Set the componentName property: The component name.

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.

AdditionalUnattendContent withPassName(PassNames passName)

Set the passName property: The pass name.

AdditionalUnattendContent withSettingName(SettingNames settingName)

Set the settingName property: Specifies the name of the setting to which the content applies.

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:

the componentName value.

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:

the content value.

fromJson

public static AdditionalUnattendContent fromJson(JsonReader jsonReader)

Reads an instance of AdditionalUnattendContent from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AdditionalUnattendContent if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the AdditionalUnattendContent.

passName

public PassNames passName()

Get the passName property: The pass name. Currently, the only allowable value is OobeSystem.

Returns:

the passName value.

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:

the settingName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

componentName - the componentName value to set.

Returns:

the AdditionalUnattendContent object itself.

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:

content - the content value to set.

Returns:

the AdditionalUnattendContent object itself.

withPassName

public AdditionalUnattendContent withPassName(PassNames passName)

Set the passName property: The pass name. Currently, the only allowable value is OobeSystem.

Parameters:

passName - the passName value to set.

Returns:

the AdditionalUnattendContent object itself.

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:

settingName - the settingName value to set.

Returns:

the AdditionalUnattendContent object itself.

Applies to