|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.accesscontextmanager.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Stores settings related to Google Cloud Session Length including session duration, the type of |
| 21 | + * challenge (i.e. method) they should face when their session expires, and other related settings. |
| 22 | + * |
| 23 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 24 | + * transmitted over HTTP when working with the Access Context Manager API. For a detailed |
| 25 | + * explanation see: |
| 26 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 27 | + * </p> |
| 28 | + * |
| 29 | + * @author Google, Inc. |
| 30 | + */ |
| 31 | +@SuppressWarnings("javadoc") |
| 32 | +public final class SessionSettings extends com.google.api.client.json.GenericJson { |
| 33 | + |
| 34 | + /** |
| 35 | + * Optional. How long a user is allowed to take between actions before a new access token must be |
| 36 | + * issued. Presently only set for Cloud Apps. |
| 37 | + * The value may be {@code null}. |
| 38 | + */ |
| 39 | + @com.google.api.client.util.Key |
| 40 | + private String maxInactivity; |
| 41 | + |
| 42 | + /** |
| 43 | + * Optional. The session length. Setting this field to zero is equal to disabling. Session. Also |
| 44 | + * can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is |
| 45 | + * true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age |
| 46 | + * param. |
| 47 | + * The value may be {@code null}. |
| 48 | + */ |
| 49 | + @com.google.api.client.util.Key |
| 50 | + private String sessionLength; |
| 51 | + |
| 52 | + /** |
| 53 | + * Optional. Big red button to turn off GCSL. When false, all fields set above will be disregarded |
| 54 | + * and the session length is basically infinite. |
| 55 | + * The value may be {@code null}. |
| 56 | + */ |
| 57 | + @com.google.api.client.util.Key |
| 58 | + private java.lang.Boolean sessionLengthEnabled; |
| 59 | + |
| 60 | + /** |
| 61 | + * Optional. Session method when users GCP session is up. |
| 62 | + * The value may be {@code null}. |
| 63 | + */ |
| 64 | + @com.google.api.client.util.Key |
| 65 | + private java.lang.String sessionReauthMethod; |
| 66 | + |
| 67 | + /** |
| 68 | + * Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the |
| 69 | + * authentication request will be ignored. When true, the re-auth period will be the minimum of |
| 70 | + * the session_length field and the max_age OIDC param. |
| 71 | + * The value may be {@code null}. |
| 72 | + */ |
| 73 | + @com.google.api.client.util.Key |
| 74 | + private java.lang.Boolean useOidcMaxAge; |
| 75 | + |
| 76 | + /** |
| 77 | + * Optional. How long a user is allowed to take between actions before a new access token must be |
| 78 | + * issued. Presently only set for Cloud Apps. |
| 79 | + * @return value or {@code null} for none |
| 80 | + */ |
| 81 | + public String getMaxInactivity() { |
| 82 | + return maxInactivity; |
| 83 | + } |
| 84 | + |
| 85 | + /** |
| 86 | + * Optional. How long a user is allowed to take between actions before a new access token must be |
| 87 | + * issued. Presently only set for Cloud Apps. |
| 88 | + * @param maxInactivity maxInactivity or {@code null} for none |
| 89 | + */ |
| 90 | + public SessionSettings setMaxInactivity(String maxInactivity) { |
| 91 | + this.maxInactivity = maxInactivity; |
| 92 | + return this; |
| 93 | + } |
| 94 | + |
| 95 | + /** |
| 96 | + * Optional. The session length. Setting this field to zero is equal to disabling. Session. Also |
| 97 | + * can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is |
| 98 | + * true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age |
| 99 | + * param. |
| 100 | + * @return value or {@code null} for none |
| 101 | + */ |
| 102 | + public String getSessionLength() { |
| 103 | + return sessionLength; |
| 104 | + } |
| 105 | + |
| 106 | + /** |
| 107 | + * Optional. The session length. Setting this field to zero is equal to disabling. Session. Also |
| 108 | + * can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is |
| 109 | + * true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age |
| 110 | + * param. |
| 111 | + * @param sessionLength sessionLength or {@code null} for none |
| 112 | + */ |
| 113 | + public SessionSettings setSessionLength(String sessionLength) { |
| 114 | + this.sessionLength = sessionLength; |
| 115 | + return this; |
| 116 | + } |
| 117 | + |
| 118 | + /** |
| 119 | + * Optional. Big red button to turn off GCSL. When false, all fields set above will be disregarded |
| 120 | + * and the session length is basically infinite. |
| 121 | + * @return value or {@code null} for none |
| 122 | + */ |
| 123 | + public java.lang.Boolean getSessionLengthEnabled() { |
| 124 | + return sessionLengthEnabled; |
| 125 | + } |
| 126 | + |
| 127 | + /** |
| 128 | + * Optional. Big red button to turn off GCSL. When false, all fields set above will be disregarded |
| 129 | + * and the session length is basically infinite. |
| 130 | + * @param sessionLengthEnabled sessionLengthEnabled or {@code null} for none |
| 131 | + */ |
| 132 | + public SessionSettings setSessionLengthEnabled(java.lang.Boolean sessionLengthEnabled) { |
| 133 | + this.sessionLengthEnabled = sessionLengthEnabled; |
| 134 | + return this; |
| 135 | + } |
| 136 | + |
| 137 | + /** |
| 138 | + * Optional. Session method when users GCP session is up. |
| 139 | + * @return value or {@code null} for none |
| 140 | + */ |
| 141 | + public java.lang.String getSessionReauthMethod() { |
| 142 | + return sessionReauthMethod; |
| 143 | + } |
| 144 | + |
| 145 | + /** |
| 146 | + * Optional. Session method when users GCP session is up. |
| 147 | + * @param sessionReauthMethod sessionReauthMethod or {@code null} for none |
| 148 | + */ |
| 149 | + public SessionSettings setSessionReauthMethod(java.lang.String sessionReauthMethod) { |
| 150 | + this.sessionReauthMethod = sessionReauthMethod; |
| 151 | + return this; |
| 152 | + } |
| 153 | + |
| 154 | + /** |
| 155 | + * Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the |
| 156 | + * authentication request will be ignored. When true, the re-auth period will be the minimum of |
| 157 | + * the session_length field and the max_age OIDC param. |
| 158 | + * @return value or {@code null} for none |
| 159 | + */ |
| 160 | + public java.lang.Boolean getUseOidcMaxAge() { |
| 161 | + return useOidcMaxAge; |
| 162 | + } |
| 163 | + |
| 164 | + /** |
| 165 | + * Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the |
| 166 | + * authentication request will be ignored. When true, the re-auth period will be the minimum of |
| 167 | + * the session_length field and the max_age OIDC param. |
| 168 | + * @param useOidcMaxAge useOidcMaxAge or {@code null} for none |
| 169 | + */ |
| 170 | + public SessionSettings setUseOidcMaxAge(java.lang.Boolean useOidcMaxAge) { |
| 171 | + this.useOidcMaxAge = useOidcMaxAge; |
| 172 | + return this; |
| 173 | + } |
| 174 | + |
| 175 | + @Override |
| 176 | + public SessionSettings set(String fieldName, Object value) { |
| 177 | + return (SessionSettings) super.set(fieldName, value); |
| 178 | + } |
| 179 | + |
| 180 | + @Override |
| 181 | + public SessionSettings clone() { |
| 182 | + return (SessionSettings) super.clone(); |
| 183 | + } |
| 184 | + |
| 185 | +} |
0 commit comments