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.containerinstance; import com.fasterxml.jackson.annotation.JsonProperty;
Image registry credential.
/** * Image registry credential. */
public class ImageRegistryCredential {
The Docker image registry server without a protocol such as "http" and "https".
/** * The Docker image registry server without a protocol such as "http" and * "https". */
@JsonProperty(value = "server", required = true) private String server;
The username for the private registry.
/** * The username for the private registry. */
@JsonProperty(value = "username", required = true) private String username;
The password for the private registry.
/** * The password for the private registry. */
@JsonProperty(value = "password") private String password;
Get the Docker image registry server without a protocol such as "http" and "https".
Returns:the server value
/** * Get the Docker image registry server without a protocol such as "http" and "https". * * @return the server value */
public String server() { return this.server; }
Set the Docker image registry server without a protocol such as "http" and "https".
Params:
  • server – the server value to set
Returns:the ImageRegistryCredential object itself.
/** * Set the Docker image registry server without a protocol such as "http" and "https". * * @param server the server value to set * @return the ImageRegistryCredential object itself. */
public ImageRegistryCredential withServer(String server) { this.server = server; return this; }
Get the username for the private registry.
Returns:the username value
/** * Get the username for the private registry. * * @return the username value */
public String username() { return this.username; }
Set the username for the private registry.
Params:
  • username – the username value to set
Returns:the ImageRegistryCredential object itself.
/** * Set the username for the private registry. * * @param username the username value to set * @return the ImageRegistryCredential object itself. */
public ImageRegistryCredential withUsername(String username) { this.username = username; return this; }
Get the password for the private registry.
Returns:the password value
/** * Get the password for the private registry. * * @return the password value */
public String password() { return this.password; }
Set the password for the private registry.
Params:
  • password – the password value to set
Returns:the ImageRegistryCredential object itself.
/** * Set the password for the private registry. * * @param password the password value to set * @return the ImageRegistryCredential object itself. */
public ImageRegistryCredential withPassword(String password) { this.password = password; return this; } }