BareMetalMachineKeySetPatchParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.BareMetalMachineKeySetPatchParameters

Implements

public final class BareMetalMachineKeySetPatchParameters
implements JsonSerializable<BareMetalMachineKeySetPatchParameters>

BareMetalMachineKeySetPatchParameters represents the body of the request to patch the bare metal machine key set.

Constructor Summary

Constructor Description
BareMetalMachineKeySetPatchParameters()

Creates an instance of BareMetalMachineKeySetPatchParameters class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime expiration()

Get the expiration property: The date and time after which the users in this key set will be removed from the bare metal machines.

static BareMetalMachineKeySetPatchParameters fromJson(JsonReader jsonReader)

Reads an instance of BareMetalMachineKeySetPatchParameters from the JsonReader.

List<String> jumpHostsAllowed()

Get the jumpHostsAllowed property: The list of IP addresses of jump hosts with management network access from which a login will be allowed for the users.

Map<String,String> tags()

Get the tags property: The Azure resource tags that will replace the existing ones.

JsonWriter toJson(JsonWriter jsonWriter)
List<KeySetUser> userList()

Get the userList property: The unique list of permitted users.

void validate()

Validates the instance.

BareMetalMachineKeySetPatchParameters withExpiration(OffsetDateTime expiration)

Set the expiration property: The date and time after which the users in this key set will be removed from the bare metal machines.

BareMetalMachineKeySetPatchParameters withJumpHostsAllowed(List<String> jumpHostsAllowed)

Set the jumpHostsAllowed property: The list of IP addresses of jump hosts with management network access from which a login will be allowed for the users.

BareMetalMachineKeySetPatchParameters withTags(Map<String,String> tags)

Set the tags property: The Azure resource tags that will replace the existing ones.

BareMetalMachineKeySetPatchParameters withUserList(List<KeySetUser> userList)

Set the userList property: The unique list of permitted users.

Methods inherited from java.lang.Object

Constructor Details

BareMetalMachineKeySetPatchParameters

public BareMetalMachineKeySetPatchParameters()

Creates an instance of BareMetalMachineKeySetPatchParameters class.

Method Details

expiration

public OffsetDateTime expiration()

Get the expiration property: The date and time after which the users in this key set will be removed from the bare metal machines.

Returns:

the expiration value.

fromJson

public static BareMetalMachineKeySetPatchParameters fromJson(JsonReader jsonReader)

Reads an instance of BareMetalMachineKeySetPatchParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BareMetalMachineKeySetPatchParameters 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 BareMetalMachineKeySetPatchParameters.

jumpHostsAllowed

public List<String> jumpHostsAllowed()

Get the jumpHostsAllowed property: The list of IP addresses of jump hosts with management network access from which a login will be allowed for the users.

Returns:

the jumpHostsAllowed value.

tags

public Map<String,String> tags()

Get the tags property: The Azure resource tags that will replace the existing ones.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

userList

public List<KeySetUser> userList()

Get the userList property: The unique list of permitted users.

Returns:

the userList value.

validate

public void validate()

Validates the instance.

withExpiration

public BareMetalMachineKeySetPatchParameters withExpiration(OffsetDateTime expiration)

Set the expiration property: The date and time after which the users in this key set will be removed from the bare metal machines.

Parameters:

expiration - the expiration value to set.

Returns:

the BareMetalMachineKeySetPatchParameters object itself.

withJumpHostsAllowed

public BareMetalMachineKeySetPatchParameters withJumpHostsAllowed(List<String> jumpHostsAllowed)

Set the jumpHostsAllowed property: The list of IP addresses of jump hosts with management network access from which a login will be allowed for the users.

Parameters:

jumpHostsAllowed - the jumpHostsAllowed value to set.

Returns:

the BareMetalMachineKeySetPatchParameters object itself.

withTags

public BareMetalMachineKeySetPatchParameters withTags(Map<String,String> tags)

Set the tags property: The Azure resource tags that will replace the existing ones.

Parameters:

tags - the tags value to set.

Returns:

the BareMetalMachineKeySetPatchParameters object itself.

withUserList

public BareMetalMachineKeySetPatchParameters withUserList(List<KeySetUser> userList)

Set the userList property: The unique list of permitted users.

Parameters:

userList - the userList value to set.

Returns:

the BareMetalMachineKeySetPatchParameters object itself.

Applies to