Class Target
java.lang.Object
com.azure.resourcemanager.containerregistry.models.Target
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Target>
The target of the event.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondigest()Get the digest property: The digest of the content, as defined by the Registry V2 HTTP API Specification.static TargetfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Target from the JsonReader.length()Get the length property: The number of bytes of the content.Get the mediaType property: The MIME type of the referenced object.name()Get the name property: The name of the artifact.Get the repository property: The repository name.size()Get the size property: The number of bytes of the content.tag()Get the tag property: The tag name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) url()Get the url property: The direct URL to the content.voidvalidate()Validates the instance.version()Get the version property: The version of the artifact.withDigest(String digest) Set the digest property: The digest of the content, as defined by the Registry V2 HTTP API Specification.withLength(Long length) Set the length property: The number of bytes of the content.withMediaType(String mediaType) Set the mediaType property: The MIME type of the referenced object.Set the name property: The name of the artifact.withRepository(String repository) Set the repository property: The repository name.Set the size property: The number of bytes of the content.Set the tag property: The tag name.Set the url property: The direct URL to the content.withVersion(String version) Set the version property: The version of the artifact.Methods inherited from class java.lang.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
-
Target
public Target()Creates an instance of Target class.
-
-
Method Details
-
mediaType
Get the mediaType property: The MIME type of the referenced object.- Returns:
- the mediaType value.
-
withMediaType
Set the mediaType property: The MIME type of the referenced object.- Parameters:
mediaType- the mediaType value to set.- Returns:
- the Target object itself.
-
size
Get the size property: The number of bytes of the content. Same as Length field.- Returns:
- the size value.
-
withSize
Set the size property: The number of bytes of the content. Same as Length field.- Parameters:
size- the size value to set.- Returns:
- the Target object itself.
-
digest
Get the digest property: The digest of the content, as defined by the Registry V2 HTTP API Specification.- Returns:
- the digest value.
-
withDigest
Set the digest property: The digest of the content, as defined by the Registry V2 HTTP API Specification.- Parameters:
digest- the digest value to set.- Returns:
- the Target object itself.
-
length
Get the length property: The number of bytes of the content. Same as Size field.- Returns:
- the length value.
-
withLength
Set the length property: The number of bytes of the content. Same as Size field.- Parameters:
length- the length value to set.- Returns:
- the Target object itself.
-
repository
Get the repository property: The repository name.- Returns:
- the repository value.
-
withRepository
Set the repository property: The repository name.- Parameters:
repository- the repository value to set.- Returns:
- the Target object itself.
-
url
Get the url property: The direct URL to the content.- Returns:
- the url value.
-
withUrl
Set the url property: The direct URL to the content.- Parameters:
url- the url value to set.- Returns:
- the Target object itself.
-
tag
Get the tag property: The tag name.- Returns:
- the tag value.
-
withTag
Set the tag property: The tag name.- Parameters:
tag- the tag value to set.- Returns:
- the Target object itself.
-
name
Get the name property: The name of the artifact.- Returns:
- the name value.
-
withName
Set the name property: The name of the artifact.- Parameters:
name- the name value to set.- Returns:
- the Target object itself.
-
version
Get the version property: The version of the artifact.- Returns:
- the version value.
-
withVersion
Set the version property: The version of the artifact.- Parameters:
version- the version value to set.- Returns:
- the Target 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<Target>- Throws:
IOException
-
fromJson
Reads an instance of Target from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Target 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 Target.
-