Class ProfileUpdateParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.ProfileUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ProfileUpdateParameters>
public final class ProfileUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<ProfileUpdateParameters>
Properties required to update a profile.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ProfileUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProfileUpdateParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ProfileUpdateParameters from the JsonReader.identity()Get the identity property: Managed service identity (system assigned and/or user assigned identities).Get the logScrubbing property: Defines rules to scrub sensitive fields in logs.Get the originResponseTimeoutSeconds property: Send and receive timeout on forwarding request to the origin.tags()Get the tags property: Profile tags.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIdentity(ManagedServiceIdentity identity) Set the identity property: Managed service identity (system assigned and/or user assigned identities).withLogScrubbing(ProfileLogScrubbing logScrubbing) Set the logScrubbing property: Defines rules to scrub sensitive fields in logs.withOriginResponseTimeoutSeconds(Integer originResponseTimeoutSeconds) Set the originResponseTimeoutSeconds property: Send and receive timeout on forwarding request to the origin.Set the tags property: Profile tags.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ProfileUpdateParameters
public ProfileUpdateParameters()Creates an instance of ProfileUpdateParameters class.
-
-
Method Details
-
tags
-
withTags
Set the tags property: Profile tags.- Parameters:
tags- the tags value to set.- Returns:
- the ProfileUpdateParameters object itself.
-
identity
Get the identity property: Managed service identity (system assigned and/or user assigned identities).- Returns:
- the identity value.
-
withIdentity
Set the identity property: Managed service identity (system assigned and/or user assigned identities).- Parameters:
identity- the identity value to set.- Returns:
- the ProfileUpdateParameters object itself.
-
originResponseTimeoutSeconds
Get the originResponseTimeoutSeconds property: Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns.- Returns:
- the originResponseTimeoutSeconds value.
-
withOriginResponseTimeoutSeconds
public ProfileUpdateParameters withOriginResponseTimeoutSeconds(Integer originResponseTimeoutSeconds) Set the originResponseTimeoutSeconds property: Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns.- Parameters:
originResponseTimeoutSeconds- the originResponseTimeoutSeconds value to set.- Returns:
- the ProfileUpdateParameters object itself.
-
logScrubbing
Get the logScrubbing property: Defines rules to scrub sensitive fields in logs.- Returns:
- the logScrubbing value.
-
withLogScrubbing
Set the logScrubbing property: Defines rules to scrub sensitive fields in logs.- Parameters:
logScrubbing- the logScrubbing value to set.- Returns:
- the ProfileUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ProfileUpdateParameters>- Throws:
IOException
-
fromJson
public static ProfileUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ProfileUpdateParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ProfileUpdateParameters 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 ProfileUpdateParameters.
-