1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License.
3 // Code generated by Microsoft (R) AutoRest Code Generator
4
5 package com.microsoft.azure.batch.protocol.models;
6
7 import com.fasterxml.jackson.annotation.JsonProperty;
8
9 /**
10 * A private container registry.
11 */
12 public class ContainerRegistry {
13 /**
14 * The registry URL.
15 * If omitted, the default is "docker.io".
16 */
17 @JsonProperty(value = "registryServer")
18 private String registryServer;
19
20 /**
21 * The user name to log into the registry server.
22 */
23 @JsonProperty(value = "username", required = true)
24 private String userName;
25
26 /**
27 * The password to log into the registry server.
28 */
29 @JsonProperty(value = "password", required = true)
30 private String password;
31
32 /**
33 * Get if omitted, the default is "docker.io".
34 *
35 * @return the registryServer value
36 */
37 public String registryServer() {
38 return this.registryServer;
39 }
40
41 /**
42 * Set if omitted, the default is "docker.io".
43 *
44 * @param registryServer the registryServer value to set
45 * @return the ContainerRegistry object itself.
46 */
47 public ContainerRegistry withRegistryServer(String registryServer) {
48 this.registryServer = registryServer;
49 return this;
50 }
51
52 /**
53 * Get the userName value.
54 *
55 * @return the userName value
56 */
57 public String userName() {
58 return this.userName;
59 }
60
61 /**
62 * Set the userName value.
63 *
64 * @param userName the userName value to set
65 * @return the ContainerRegistry object itself.
66 */
67 public ContainerRegistry withUserName(String userName) {
68 this.userName = userName;
69 return this;
70 }
71
72 /**
73 * Get the password value.
74 *
75 * @return the password value
76 */
77 public String password() {
78 return this.password;
79 }
80
81 /**
82 * Set the password value.
83 *
84 * @param password the password value to set
85 * @return the ContainerRegistry object itself.
86 */
87 public ContainerRegistry withPassword(String password) {
88 this.password = password;
89 return this;
90 }
91
92 }