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

io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup Maven / Gradle / Ivy

The newest version!
package io.k8s.apimachinery.pkg.apis.meta.v1;

import java.lang.String;
import java.util.List;

/**
 * APIGroup contains the name, the supported versions, and the preferred version of a group.
 */
public class APIGroup {
  public String apiVersion;

  public String kind;

  public String name;

  public GroupVersionForDiscovery preferredVersion;

  public List serverAddressByClientCIDRs;

  public List versions;

  /**
   * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
   */
  public APIGroup apiVersion(String apiVersion) {
    this.apiVersion = apiVersion;
    return this;
  }

  /**
   * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
   */
  public APIGroup kind(String kind) {
    this.kind = kind;
    return this;
  }

  /**
   * name is the name of the group.
   */
  public APIGroup name(String name) {
    this.name = name;
    return this;
  }

  public APIGroup preferredVersion(GroupVersionForDiscovery preferredVersion) {
    this.preferredVersion = preferredVersion;
    return this;
  }

  /**
   * a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
   */
  public APIGroup serverAddressByClientCIDRs(
      List serverAddressByClientCIDRs) {
    this.serverAddressByClientCIDRs = serverAddressByClientCIDRs;
    return this;
  }

  /**
   * versions are the versions supported in this group.
   */
  public APIGroup versions(List versions) {
    this.versions = versions;
    return this;
  }

  public static APIGroup aPIGroup() {
    return new APIGroup();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy