com.google.api.services.cloudasset.v1.model.AnalyzeIamPolicyLongrunningRequest Maven / Gradle / Ivy
The newest version!
/*
* 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.cloudasset.v1.model;
/**
* A request message for AssetService.AnalyzeIamPolicyLongrunning.
*
* 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 Cloud Asset 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 AnalyzeIamPolicyLongrunningRequest extends com.google.api.client.json.GenericJson {
/**
* Required. The request query.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private IamPolicyAnalysisQuery analysisQuery;
/**
* Required. Output configuration indicating where the results will be output to.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private IamPolicyAnalysisOutputConfig outputConfig;
/**
* Optional. The name of a saved query, which must be in the format of: *
* projects/project_number/savedQueries/saved_query_id *
* folders/folder_number/savedQueries/saved_query_id *
* organizations/organization_number/savedQueries/saved_query_id If both `analysis_query` and
* `saved_analysis_query` are provided, they will be merged together with the
* `saved_analysis_query` as base and the `analysis_query` as overrides. For more details of the
* merge behavior, refer to the [MergeFrom](https://developers.google.com/protocol-
* buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details) doc. Note that
* you cannot override primitive fields with default value, such as 0 or empty string, etc.,
* because we use proto3, which doesn't support field presence yet.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String savedAnalysisQuery;
/**
* Required. The request query.
* @return value or {@code null} for none
*/
public IamPolicyAnalysisQuery getAnalysisQuery() {
return analysisQuery;
}
/**
* Required. The request query.
* @param analysisQuery analysisQuery or {@code null} for none
*/
public AnalyzeIamPolicyLongrunningRequest setAnalysisQuery(IamPolicyAnalysisQuery analysisQuery) {
this.analysisQuery = analysisQuery;
return this;
}
/**
* Required. Output configuration indicating where the results will be output to.
* @return value or {@code null} for none
*/
public IamPolicyAnalysisOutputConfig getOutputConfig() {
return outputConfig;
}
/**
* Required. Output configuration indicating where the results will be output to.
* @param outputConfig outputConfig or {@code null} for none
*/
public AnalyzeIamPolicyLongrunningRequest setOutputConfig(IamPolicyAnalysisOutputConfig outputConfig) {
this.outputConfig = outputConfig;
return this;
}
/**
* Optional. The name of a saved query, which must be in the format of: *
* projects/project_number/savedQueries/saved_query_id *
* folders/folder_number/savedQueries/saved_query_id *
* organizations/organization_number/savedQueries/saved_query_id If both `analysis_query` and
* `saved_analysis_query` are provided, they will be merged together with the
* `saved_analysis_query` as base and the `analysis_query` as overrides. For more details of the
* merge behavior, refer to the [MergeFrom](https://developers.google.com/protocol-
* buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details) doc. Note that
* you cannot override primitive fields with default value, such as 0 or empty string, etc.,
* because we use proto3, which doesn't support field presence yet.
* @return value or {@code null} for none
*/
public java.lang.String getSavedAnalysisQuery() {
return savedAnalysisQuery;
}
/**
* Optional. The name of a saved query, which must be in the format of: *
* projects/project_number/savedQueries/saved_query_id *
* folders/folder_number/savedQueries/saved_query_id *
* organizations/organization_number/savedQueries/saved_query_id If both `analysis_query` and
* `saved_analysis_query` are provided, they will be merged together with the
* `saved_analysis_query` as base and the `analysis_query` as overrides. For more details of the
* merge behavior, refer to the [MergeFrom](https://developers.google.com/protocol-
* buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details) doc. Note that
* you cannot override primitive fields with default value, such as 0 or empty string, etc.,
* because we use proto3, which doesn't support field presence yet.
* @param savedAnalysisQuery savedAnalysisQuery or {@code null} for none
*/
public AnalyzeIamPolicyLongrunningRequest setSavedAnalysisQuery(java.lang.String savedAnalysisQuery) {
this.savedAnalysisQuery = savedAnalysisQuery;
return this;
}
@Override
public AnalyzeIamPolicyLongrunningRequest set(String fieldName, Object value) {
return (AnalyzeIamPolicyLongrunningRequest) super.set(fieldName, value);
}
@Override
public AnalyzeIamPolicyLongrunningRequest clone() {
return (AnalyzeIamPolicyLongrunningRequest) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy