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;
Properties for a registry image.
/** * Properties for a registry image. */
public class ImageDescriptor {
The registry login server.
/** * The registry login server. */
@JsonProperty(value = "registry") private String registry;
The repository name.
/** * The repository name. */
@JsonProperty(value = "repository") private String repository;
The tag name.
/** * The tag name. */
@JsonProperty(value = "tag") private String tag;
The sha256-based digest of the image manifest.
/** * The sha256-based digest of the image manifest. */
@JsonProperty(value = "digest") private String digest;
Get the registry login server.
Returns:the registry value
/** * Get the registry login server. * * @return the registry value */
public String registry() { return this.registry; }
Set the registry login server.
Params:
  • registry – the registry value to set
Returns:the ImageDescriptor object itself.
/** * Set the registry login server. * * @param registry the registry value to set * @return the ImageDescriptor object itself. */
public ImageDescriptor withRegistry(String registry) { this.registry = registry; 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 ImageDescriptor object itself.
/** * Set the repository name. * * @param repository the repository value to set * @return the ImageDescriptor object itself. */
public ImageDescriptor withRepository(String repository) { this.repository = repository; 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 ImageDescriptor object itself.
/** * Set the tag name. * * @param tag the tag value to set * @return the ImageDescriptor object itself. */
public ImageDescriptor withTag(String tag) { this.tag = tag; return this; }
Get the sha256-based digest of the image manifest.
Returns:the digest value
/** * Get the sha256-based digest of the image manifest. * * @return the digest value */
public String digest() { return this.digest; }
Set the sha256-based digest of the image manifest.
Params:
  • digest – the digest value to set
Returns:the ImageDescriptor object itself.
/** * Set the sha256-based digest of the image manifest. * * @param digest the digest value to set * @return the ImageDescriptor object itself. */
public ImageDescriptor withDigest(String digest) { this.digest = digest; return this; } }