/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/secretmanager/v1/resources.proto

package com.google.cloud.secretmanager.v1;

public interface RotationOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Rotation)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Optional. Timestamp in UTC at which the
   * [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate.
   * Cannot be set to less than 300s (5 min) in the future and at most
   * 3153600000s (100 years).
   * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
   * MUST  be set if
   * [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period]
   * is set.
   * </pre>
   *
   * <code>
   * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the nextRotationTime field is set.
   */
  boolean hasNextRotationTime();
  /**
   *
   *
   * <pre>
   * Optional. Timestamp in UTC at which the
   * [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate.
   * Cannot be set to less than 300s (5 min) in the future and at most
   * 3153600000s (100 years).
   * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
   * MUST  be set if
   * [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period]
   * is set.
   * </pre>
   *
   * <code>
   * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The nextRotationTime.
   */
  com.google.protobuf.Timestamp getNextRotationTime();
  /**
   *
   *
   * <pre>
   * Optional. Timestamp in UTC at which the
   * [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate.
   * Cannot be set to less than 300s (5 min) in the future and at most
   * 3153600000s (100 years).
   * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
   * MUST  be set if
   * [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period]
   * is set.
   * </pre>
   *
   * <code>
   * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder();

  /**
   *
   *
   * <pre>
   * Input only. The Duration between rotation notifications. Must be in seconds
   * and at least 3600s (1h) and at most 3153600000s (100 years).
   * If
   * [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period]
   * is set,
   * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
   * must be set.
   * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
   * will be advanced by this period when the service automatically sends
   * rotation notifications.
   * </pre>
   *
   * <code>
   * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY];
   * </code>
   *
   * @return Whether the rotationPeriod field is set.
   */
  boolean hasRotationPeriod();
  /**
   *
   *
   * <pre>
   * Input only. The Duration between rotation notifications. Must be in seconds
   * and at least 3600s (1h) and at most 3153600000s (100 years).
   * If
   * [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period]
   * is set,
   * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
   * must be set.
   * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
   * will be advanced by this period when the service automatically sends
   * rotation notifications.
   * </pre>
   *
   * <code>
   * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY];
   * </code>
   *
   * @return The rotationPeriod.
   */
  com.google.protobuf.Duration getRotationPeriod();
  /**
   *
   *
   * <pre>
   * Input only. The Duration between rotation notifications. Must be in seconds
   * and at least 3600s (1h) and at most 3153600000s (100 years).
   * If
   * [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period]
   * is set,
   * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
   * must be set.
   * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
   * will be advanced by this period when the service automatically sends
   * rotation notifications.
   * </pre>
   *
   * <code>
   * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY];
   * </code>
   */
  com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder();
}
