Class ContainerRegistryEventTarget
- java.lang.Object
-
- com.microsoft.azure.eventgrid.models.ContainerRegistryEventTarget
-
public class ContainerRegistryEventTarget extends Object
The target of the event.
-
-
Constructor Summary
Constructors Constructor Description ContainerRegistryEventTarget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdigest()Get the digest of the content, as defined by the Registry V2 HTTP API Specification.Longlength()Get the number of bytes of the content.StringmediaType()Get the MIME type of the referenced object.Stringrepository()Get the repository name.Longsize()Get the number of bytes of the content.Stringtag()Get the tag name.Stringurl()Get the direct URL to the content.ContainerRegistryEventTargetwithDigest(String digest)Set the digest of the content, as defined by the Registry V2 HTTP API Specification.ContainerRegistryEventTargetwithLength(Long length)Set the number of bytes of the content.ContainerRegistryEventTargetwithMediaType(String mediaType)Set the MIME type of the referenced object.ContainerRegistryEventTargetwithRepository(String repository)Set the repository name.ContainerRegistryEventTargetwithSize(Long size)Set the number of bytes of the content.ContainerRegistryEventTargetwithTag(String tag)Set the tag name.ContainerRegistryEventTargetwithUrl(String url)Set the direct URL to the content.
-
-
-
Method Detail
-
mediaType
public String mediaType()
Get the MIME type of the referenced object.- Returns:
- the mediaType value
-
withMediaType
public ContainerRegistryEventTarget withMediaType(String mediaType)
Set the MIME type of the referenced object.- Parameters:
mediaType- the mediaType value to set- Returns:
- the ContainerRegistryEventTarget object itself.
-
size
public Long size()
Get the number of bytes of the content. Same as Length field.- Returns:
- the size value
-
withSize
public ContainerRegistryEventTarget withSize(Long size)
Set the number of bytes of the content. Same as Length field.- Parameters:
size- the size value to set- Returns:
- the ContainerRegistryEventTarget object itself.
-
digest
public String digest()
Get the digest of the content, as defined by the Registry V2 HTTP API Specification.- Returns:
- the digest value
-
withDigest
public ContainerRegistryEventTarget withDigest(String digest)
Set the digest of the content, as defined by the Registry V2 HTTP API Specification.- Parameters:
digest- the digest value to set- Returns:
- the ContainerRegistryEventTarget object itself.
-
length
public Long length()
Get the number of bytes of the content. Same as Size field.- Returns:
- the length value
-
withLength
public ContainerRegistryEventTarget withLength(Long length)
Set the number of bytes of the content. Same as Size field.- Parameters:
length- the length value to set- Returns:
- the ContainerRegistryEventTarget object itself.
-
repository
public String repository()
Get the repository name.- Returns:
- the repository value
-
withRepository
public ContainerRegistryEventTarget withRepository(String repository)
Set the repository name.- Parameters:
repository- the repository value to set- Returns:
- the ContainerRegistryEventTarget object itself.
-
url
public String url()
Get the direct URL to the content.- Returns:
- the url value
-
withUrl
public ContainerRegistryEventTarget withUrl(String url)
Set the direct URL to the content.- Parameters:
url- the url value to set- Returns:
- the ContainerRegistryEventTarget object itself.
-
tag
public String tag()
Get the tag name.- Returns:
- the tag value
-
withTag
public ContainerRegistryEventTarget withTag(String tag)
Set the tag name.- Parameters:
tag- the tag value to set- Returns:
- the ContainerRegistryEventTarget object itself.
-
-