All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vmware.avi.sdk.model.DockerRegistry Maven / Gradle / Ivy

/*
 * Copyright 2021 VMware, Inc.
 * SPDX-License-Identifier: Apache License 2.0
 */

package com.vmware.avi.sdk.model;

import java.util.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * The DockerRegistry is a POJO class extends AviRestResource that used for creating
 * DockerRegistry.
 *
 * @version 1.0
 * @since 
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DockerRegistry  {
    @JsonProperty("oshift_registry")
    private OshiftDockerRegistryMetaData oshiftRegistry;

    @JsonProperty("password")
    private String password;

    @JsonProperty("privates")
    private Boolean privates = false;

    @JsonProperty("registry")
    private String registry = "avinetworks/se";

    @JsonProperty("username")
    private String username;



    /**
     * This is the getter method this will return the attribute value.
     * Openshift integrated registry config.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return oshiftRegistry
     */
    public OshiftDockerRegistryMetaData getOshiftRegistry() {
        return oshiftRegistry;
    }

    /**
     * This is the setter method to the attribute.
     * Openshift integrated registry config.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param oshiftRegistry set the oshiftRegistry.
     */
    public void setOshiftRegistry(OshiftDockerRegistryMetaData oshiftRegistry) {
        this.oshiftRegistry = oshiftRegistry;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Password for docker registry.
     * Authorized 'regular user' password if registry is openshift integrated registry.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * This is the setter method to the attribute.
     * Password for docker registry.
     * Authorized 'regular user' password if registry is openshift integrated registry.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param password set the password.
     */
    public void setPassword(String  password) {
        this.password = password;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Set if docker registry is private.
     * Avi controller will not attempt to push se image to the registry, unless se_repository_push is set.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as false.
     * @return privates
     */
    public Boolean getPrivates() {
        return privates;
    }

    /**
     * This is the setter method to the attribute.
     * Set if docker registry is private.
     * Avi controller will not attempt to push se image to the registry, unless se_repository_push is set.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as false.
     * @param privates set the privates.
     */
    public void setPrivates(Boolean  privates) {
        this.privates = privates;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Avi serviceengine repository name.
     * For private registry, it's registry port/repository, for public registry, it's registry/repository, for openshift registry, it's registry
     * port/namespace/repo.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as "avinetworks/se".
     * @return registry
     */
    public String getRegistry() {
        return registry;
    }

    /**
     * This is the setter method to the attribute.
     * Avi serviceengine repository name.
     * For private registry, it's registry port/repository, for public registry, it's registry/repository, for openshift registry, it's registry
     * port/namespace/repo.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as "avinetworks/se".
     * @param registry set the registry.
     */
    public void setRegistry(String  registry) {
        this.registry = registry;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Username for docker registry.
     * Authorized 'regular user' if registry is openshift integrated registry.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * This is the setter method to the attribute.
     * Username for docker registry.
     * Authorized 'regular user' if registry is openshift integrated registry.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param username set the username.
     */
    public void setUsername(String  username) {
        this.username = username;
    }


    @Override
    public boolean equals(java.lang.Object o) {
      if (this == o) {
          return true;
      }
      if (o == null || getClass() != o.getClass()) {
          return false;
      }
      DockerRegistry objDockerRegistry = (DockerRegistry) o;
      return   Objects.equals(this.registry, objDockerRegistry.registry)&&
  Objects.equals(this.privates, objDockerRegistry.privates)&&
  Objects.equals(this.username, objDockerRegistry.username)&&
  Objects.equals(this.password, objDockerRegistry.password)&&
  Objects.equals(this.oshiftRegistry, objDockerRegistry.oshiftRegistry);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class DockerRegistry {\n");
                  sb.append("    oshiftRegistry: ").append(toIndentedString(oshiftRegistry)).append("\n");
                        sb.append("    password: ").append(toIndentedString(password)).append("\n");
                        sb.append("    privates: ").append(toIndentedString(privates)).append("\n");
                        sb.append("    registry: ").append(toIndentedString(registry)).append("\n");
                        sb.append("    username: ").append(toIndentedString(username)).append("\n");
                  sb.append("}");
      return sb.toString();
    }

    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
      if (o == null) {
          return "null";
      }
      return o.toString().replace("\n", "\n    ");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy