com.google.api.services.accesscontextmanager.v1.model.EgressSource 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;
/**
* The source that EgressPolicy authorizes access from inside the ServicePerimeter to somewhere
* outside the ServicePerimeter boundaries.
*
* 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 EgressSource extends com.google.api.client.json.GenericJson {
/**
* An AccessLevel resource name that allows protected resources inside the ServicePerimeters to
* access outside the ServicePerimeter boundaries. AccessLevels listed must be in the same policy
* as this ServicePerimeter. Referencing a nonexistent AccessLevel will cause an error. If an
* AccessLevel name is not specified, only resources within the perimeter can be accessed through
* Google Cloud calls with request origins within the perimeter. Example:
* `accessPolicies/MY_POLICY/accessLevels/MY_LEVEL`. If a single `*` is specified for
* `access_level`, then all EgressSources will be allowed.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String accessLevel;
/**
* An AccessLevel resource name that allows protected resources inside the ServicePerimeters to
* access outside the ServicePerimeter boundaries. AccessLevels listed must be in the same policy
* as this ServicePerimeter. Referencing a nonexistent AccessLevel will cause an error. If an
* AccessLevel name is not specified, only resources within the perimeter can be accessed through
* Google Cloud calls with request origins within the perimeter. Example:
* `accessPolicies/MY_POLICY/accessLevels/MY_LEVEL`. If a single `*` is specified for
* `access_level`, then all EgressSources will be allowed.
* @return value or {@code null} for none
*/
public java.lang.String getAccessLevel() {
return accessLevel;
}
/**
* An AccessLevel resource name that allows protected resources inside the ServicePerimeters to
* access outside the ServicePerimeter boundaries. AccessLevels listed must be in the same policy
* as this ServicePerimeter. Referencing a nonexistent AccessLevel will cause an error. If an
* AccessLevel name is not specified, only resources within the perimeter can be accessed through
* Google Cloud calls with request origins within the perimeter. Example:
* `accessPolicies/MY_POLICY/accessLevels/MY_LEVEL`. If a single `*` is specified for
* `access_level`, then all EgressSources will be allowed.
* @param accessLevel accessLevel or {@code null} for none
*/
public EgressSource setAccessLevel(java.lang.String accessLevel) {
this.accessLevel = accessLevel;
return this;
}
@Override
public EgressSource set(String fieldName, Object value) {
return (EgressSource) super.set(fieldName, value);
}
@Override
public EgressSource clone() {
return (EgressSource) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy