Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.containerregistry; import com.fasterxml.jackson.annotation.JsonProperty;
The target of the event.
/** * The target of the event. */
public class Target {
The MIME type of the referenced object.
/** * The MIME type of the referenced object. */
@JsonProperty(value = "mediaType") private String mediaType;
The number of bytes of the content. Same as Length field.
/** * The number of bytes of the content. Same as Length field. */
@JsonProperty(value = "size") private Long size;
The digest of the content, as defined by the Registry V2 HTTP API Specification.
/** * The digest of the content, as defined by the Registry V2 HTTP API * Specification. */
@JsonProperty(value = "digest") private String digest;
The number of bytes of the content. Same as Size field.
/** * The number of bytes of the content. Same as Size field. */
@JsonProperty(value = "length") private Long length;
The repository name.
/** * The repository name. */
@JsonProperty(value = "repository") private String repository;
The direct URL to the content.
/** * The direct URL to the content. */
@JsonProperty(value = "url") private String url;
The tag name.
/** * The tag name. */
@JsonProperty(value = "tag") private String tag;
Get the MIME type of the referenced object.
Returns:the mediaType value
/** * Get the MIME type of the referenced object. * * @return the mediaType value */
public String mediaType() { return this.mediaType; }
Set the MIME type of the referenced object.
Params:
  • mediaType – the mediaType value to set
Returns:the Target object itself.
/** * Set the MIME type of the referenced object. * * @param mediaType the mediaType value to set * @return the Target object itself. */
public Target withMediaType(String mediaType) { this.mediaType = mediaType; return this; }
Get the number of bytes of the content. Same as Length field.
Returns:the size value
/** * Get the number of bytes of the content. Same as Length field. * * @return the size value */
public Long size() { return this.size; }
Set the number of bytes of the content. Same as Length field.
Params:
  • size – the size value to set
Returns:the Target object itself.
/** * Set the number of bytes of the content. Same as Length field. * * @param size the size value to set * @return the Target object itself. */
public Target withSize(Long size) { this.size = size; return this; }
Get the digest of the content, as defined by the Registry V2 HTTP API Specification.
Returns:the digest value
/** * Get the digest of the content, as defined by the Registry V2 HTTP API Specification. * * @return the digest value */
public String digest() { return this.digest; }
Set the digest of the content, as defined by the Registry V2 HTTP API Specification.
Params:
  • digest – the digest value to set
Returns:the Target object itself.
/** * Set the digest of the content, as defined by the Registry V2 HTTP API Specification. * * @param digest the digest value to set * @return the Target object itself. */
public Target withDigest(String digest) { this.digest = digest; return this; }
Get the number of bytes of the content. Same as Size field.
Returns:the length value
/** * Get the number of bytes of the content. Same as Size field. * * @return the length value */
public Long length() { return this.length; }
Set the number of bytes of the content. Same as Size field.
Params:
  • length – the length value to set
Returns:the Target object itself.
/** * Set the number of bytes of the content. Same as Size field. * * @param length the length value to set * @return the Target object itself. */
public Target withLength(Long length) { this.length = length; return this; }
Get the repository name.
Returns:the repository value
/** * Get the repository name. * * @return the repository value */
public String repository() { return this.repository; }
Set the repository name.
Params:
  • repository – the repository value to set
Returns:the Target object itself.
/** * Set the repository name. * * @param repository the repository value to set * @return the Target object itself. */
public Target withRepository(String repository) { this.repository = repository; return this; }
Get the direct URL to the content.
Returns:the url value
/** * Get the direct URL to the content. * * @return the url value */
public String url() { return this.url; }
Set the direct URL to the content.
Params:
  • url – the url value to set
Returns:the Target object itself.
/** * Set the direct URL to the content. * * @param url the url value to set * @return the Target object itself. */
public Target withUrl(String url) { this.url = url; return this; }
Get the tag name.
Returns:the tag value
/** * Get the tag name. * * @return the tag value */
public String tag() { return this.tag; }
Set the tag name.
Params:
  • tag – the tag value to set
Returns:the Target object itself.
/** * Set the tag name. * * @param tag the tag value to set * @return the Target object itself. */
public Target withTag(String tag) { this.tag = tag; return this; } }