UpdateProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.UpdateProfile

Implements

public final class UpdateProfile
implements JsonSerializable<UpdateProfile>

Used by the customer to specify the way to update the Container Groups in NGroup.

Constructor Summary

Constructor Description
UpdateProfile()

Creates an instance of UpdateProfile class.

Method Summary

Modifier and Type Method and Description
static UpdateProfile fromJson(JsonReader jsonReader)

Reads an instance of UpdateProfile from the JsonReader.

UpdateProfileRollingUpdateProfile rollingUpdateProfile()

Get the rollingUpdateProfile property: This profile allows the customers to customize the rolling update.

JsonWriter toJson(JsonWriter jsonWriter)
NGroupUpdateMode updateMode()

Get the updateMode property: The updateMode property.

void validate()

Validates the instance.

UpdateProfile withRollingUpdateProfile(UpdateProfileRollingUpdateProfile rollingUpdateProfile)

Set the rollingUpdateProfile property: This profile allows the customers to customize the rolling update.

UpdateProfile withUpdateMode(NGroupUpdateMode updateMode)

Set the updateMode property: The updateMode property.

Methods inherited from java.lang.Object

Constructor Details

UpdateProfile

public UpdateProfile()

Creates an instance of UpdateProfile class.

Method Details

fromJson

public static UpdateProfile fromJson(JsonReader jsonReader)

Reads an instance of UpdateProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

rollingUpdateProfile

public UpdateProfileRollingUpdateProfile rollingUpdateProfile()

Get the rollingUpdateProfile property: This profile allows the customers to customize the rolling update.

Returns:

the rollingUpdateProfile value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

updateMode

public NGroupUpdateMode updateMode()

Get the updateMode property: The updateMode property.

Returns:

the updateMode value.

validate

public void validate()

Validates the instance.

withRollingUpdateProfile

public UpdateProfile withRollingUpdateProfile(UpdateProfileRollingUpdateProfile rollingUpdateProfile)

Set the rollingUpdateProfile property: This profile allows the customers to customize the rolling update.

Parameters:

rollingUpdateProfile - the rollingUpdateProfile value to set.

Returns:

the UpdateProfile object itself.

withUpdateMode

public UpdateProfile withUpdateMode(NGroupUpdateMode updateMode)

Set the updateMode property: The updateMode property.

Parameters:

updateMode - the updateMode value to set.

Returns:

the UpdateProfile object itself.

Applies to