Class V1alpha1PodCertificateRequestStatus

java.lang.Object
io.kubernetes.client.openapi.models.V1alpha1PodCertificateRequestStatus

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-09-11T18:00:16.154662Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1alpha1PodCertificateRequestStatus extends Object
PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued.
  • Field Details

  • Constructor Details

    • V1alpha1PodCertificateRequestStatus

      public V1alpha1PodCertificateRequestStatus()
  • Method Details

    • beginRefreshAt

      public V1alpha1PodCertificateRequestStatus beginRefreshAt(@Nullable OffsetDateTime beginRefreshAt)
    • getBeginRefreshAt

      @Nullable public OffsetDateTime getBeginRefreshAt()
      beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable. This field is only a hint. Kubelet may start refreshing before or after this time if necessary.
      Returns:
      beginRefreshAt
    • setBeginRefreshAt

      public void setBeginRefreshAt(@Nullable OffsetDateTime beginRefreshAt)
    • certificateChain

      public V1alpha1PodCertificateRequestStatus certificateChain(@Nullable String certificateChain)
    • getCertificateChain

      @Nullable public String getCertificateChain()
      certificateChain is populated with an issued certificate by the signer. This field is set via the /status subresource. Once populated, this field is immutable. If the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty. Validation requirements: 1. certificateChain must consist of one or more PEM-formatted certificates. 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as described in section 4 of RFC5280. If more than one block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers.
      Returns:
      certificateChain
    • setCertificateChain

      public void setCertificateChain(@Nullable String certificateChain)
    • conditions

      public V1alpha1PodCertificateRequestStatus conditions(@Nullable List<V1Condition> conditions)
    • addConditionsItem

      public V1alpha1PodCertificateRequestStatus addConditionsItem(V1Condition conditionsItem)
    • getConditions

      @Nullable public List<V1Condition> getConditions()
      conditions applied to the request. The types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\". If the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field.
      Returns:
      conditions
    • setConditions

      public void setConditions(@Nullable List<V1Condition> conditions)
    • notAfter

      public V1alpha1PodCertificateRequestStatus notAfter(@Nullable OffsetDateTime notAfter)
    • getNotAfter

      @Nullable public OffsetDateTime getNotAfter()
      notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.
      Returns:
      notAfter
    • setNotAfter

      public void setNotAfter(@Nullable OffsetDateTime notAfter)
    • notBefore

      public V1alpha1PodCertificateRequestStatus notBefore(@Nullable OffsetDateTime notBefore)
    • getNotBefore

      @Nullable public OffsetDateTime getNotBefore()
      notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.
      Returns:
      notBefore
    • setNotBefore

      public void setNotBefore(@Nullable OffsetDateTime notBefore)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to V1alpha1PodCertificateRequestStatus
    • fromJson

      public static V1alpha1PodCertificateRequestStatus fromJson(String jsonString) throws IOException
      Create an instance of V1alpha1PodCertificateRequestStatus given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1alpha1PodCertificateRequestStatus
      Throws:
      IOException - if the JSON string is invalid with respect to V1alpha1PodCertificateRequestStatus
    • toJson

      public String toJson()
      Convert an instance of V1alpha1PodCertificateRequestStatus to an JSON string
      Returns:
      JSON string