Target Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. Target
- com.
Implements
public final class Target
implements JsonSerializable<Target>
The target of the event.
Constructor Summary
Constructor | Description |
---|---|
Target() |
Creates an instance of Target class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
digest()
Get the digest property: The digest of the content, as defined by the Registry V2 HTTP API Specification. |
static Target |
fromJson(JsonReader jsonReader)
Reads an instance of Target from the Json |
Long |
length()
Get the length property: The number of bytes of the content. |
String |
mediaType()
Get the media |
String |
name()
Get the name property: The name of the artifact. |
String |
repository()
Get the repository property: The repository name. |
Long |
size()
Get the size property: The number of bytes of the content. |
String |
tag()
Get the tag property: The tag name. |
Json |
toJson(JsonWriter jsonWriter) |
String |
url()
Get the url property: The direct URL to the content. |
void |
validate()
Validates the instance. |
String |
version()
Get the version property: The version of the artifact. |
Target |
withDigest(String digest)
Set the digest property: The digest of the content, as defined by the Registry V2 HTTP API Specification. |
Target |
withLength(Long length)
Set the length property: The number of bytes of the content. |
Target |
withMediaType(String mediaType)
Set the media |
Target |
withName(String name)
Set the name property: The name of the artifact. |
Target |
withRepository(String repository)
Set the repository property: The repository name. |
Target |
withSize(Long size)
Set the size property: The number of bytes of the content. |
Target |
withTag(String tag)
Set the tag property: The tag name. |
Target |
withUrl(String url)
Set the url property: The direct URL to the content. |
Target |
withVersion(String version)
Set the version property: The version of the artifact. |
Methods inherited from java.lang.Object
Constructor Details
Target
public Target()
Creates an instance of Target class.
Method Details
digest
public String digest()
Get the digest property: The digest of the content, as defined by the Registry V2 HTTP API Specification.
Returns:
fromJson
public static Target fromJson(JsonReader jsonReader)
Reads an instance of Target from the JsonReader.
Parameters:
Returns:
Throws:
length
public Long length()
Get the length property: The number of bytes of the content. Same as Size field.
Returns:
mediaType
public String mediaType()
Get the mediaType property: The MIME type of the referenced object.
Returns:
name
public String name()
Get the name property: The name of the artifact.
Returns:
repository
public String repository()
Get the repository property: The repository name.
Returns:
size
public Long size()
Get the size property: The number of bytes of the content. Same as Length field.
Returns:
tag
public String tag()
Get the tag property: The tag name.
Returns:
toJson
url
public String url()
Get the url property: The direct URL to the content.
Returns:
validate
public void validate()
Validates the instance.
version
public String version()
Get the version property: The version of the artifact.
Returns:
withDigest
public Target withDigest(String digest)
Set the digest property: The digest of the content, as defined by the Registry V2 HTTP API Specification.
Parameters:
Returns:
withLength
public Target withLength(Long length)
Set the length property: The number of bytes of the content. Same as Size field.
Parameters:
Returns:
withMediaType
public Target withMediaType(String mediaType)
Set the mediaType property: The MIME type of the referenced object.
Parameters:
Returns:
withName
public Target withName(String name)
Set the name property: The name of the artifact.
Parameters:
Returns:
withRepository
public Target withRepository(String repository)
Set the repository property: The repository name.
Parameters:
Returns:
withSize
public Target withSize(Long size)
Set the size property: The number of bytes of the content. Same as Length field.
Parameters:
Returns:
withTag
public Target withTag(String tag)
Set the tag property: The tag name.
Parameters:
Returns:
withUrl
public Target withUrl(String url)
Set the url property: The direct URL to the content.
Parameters:
Returns:
withVersion
public Target withVersion(String version)
Set the version property: The version of the artifact.
Parameters:
Returns:
Applies to
Azure SDK for Java