com.google.api.services.accesscontextmanager.v1.model.AccessLevel Maven / Gradle / Ivy
/*
* 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
*
* http://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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.accesscontextmanager.v1.model;
/**
* An `AccessLevel` is a label that can be applied to requests to Google Cloud services, along with
* a list of requirements necessary for the label to be applied.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Access Context Manager API. For a detailed
* explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class AccessLevel extends com.google.api.client.json.GenericJson {
/**
* A `BasicLevel` composed of `Conditions`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private BasicLevel basic;
/**
* A `CustomLevel` written in the Common Expression Language.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private CustomLevel custom;
/**
* Description of the `AccessLevel` and its use. Does not affect behavior.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String description;
/**
* Identifier. Resource name for the `AccessLevel`. Format:
* `accessPolicies/{access_policy}/accessLevels/{access_level}`. The `access_level` component must
* begin with a letter, followed by alphanumeric characters or `_`. Its maximum length is 50
* characters. After you create an `AccessLevel`, you cannot change its `name`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Human readable title. Must be unique within the Policy.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String title;
/**
* A `BasicLevel` composed of `Conditions`.
* @return value or {@code null} for none
*/
public BasicLevel getBasic() {
return basic;
}
/**
* A `BasicLevel` composed of `Conditions`.
* @param basic basic or {@code null} for none
*/
public AccessLevel setBasic(BasicLevel basic) {
this.basic = basic;
return this;
}
/**
* A `CustomLevel` written in the Common Expression Language.
* @return value or {@code null} for none
*/
public CustomLevel getCustom() {
return custom;
}
/**
* A `CustomLevel` written in the Common Expression Language.
* @param custom custom or {@code null} for none
*/
public AccessLevel setCustom(CustomLevel custom) {
this.custom = custom;
return this;
}
/**
* Description of the `AccessLevel` and its use. Does not affect behavior.
* @return value or {@code null} for none
*/
public java.lang.String getDescription() {
return description;
}
/**
* Description of the `AccessLevel` and its use. Does not affect behavior.
* @param description description or {@code null} for none
*/
public AccessLevel setDescription(java.lang.String description) {
this.description = description;
return this;
}
/**
* Identifier. Resource name for the `AccessLevel`. Format:
* `accessPolicies/{access_policy}/accessLevels/{access_level}`. The `access_level` component must
* begin with a letter, followed by alphanumeric characters or `_`. Its maximum length is 50
* characters. After you create an `AccessLevel`, you cannot change its `name`.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* Identifier. Resource name for the `AccessLevel`. Format:
* `accessPolicies/{access_policy}/accessLevels/{access_level}`. The `access_level` component must
* begin with a letter, followed by alphanumeric characters or `_`. Its maximum length is 50
* characters. After you create an `AccessLevel`, you cannot change its `name`.
* @param name name or {@code null} for none
*/
public AccessLevel setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Human readable title. Must be unique within the Policy.
* @return value or {@code null} for none
*/
public java.lang.String getTitle() {
return title;
}
/**
* Human readable title. Must be unique within the Policy.
* @param title title or {@code null} for none
*/
public AccessLevel setTitle(java.lang.String title) {
this.title = title;
return this;
}
@Override
public AccessLevel set(String fieldName, Object value) {
return (AccessLevel) super.set(fieldName, value);
}
@Override
public AccessLevel clone() {
return (AccessLevel) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy