/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ package com.amazonaws.services.backup.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains detailed information about a report setting. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ReportSetting implements Serializable, Cloneable, StructuredPojo { /** ** Identifies the report template for the report. Reports are built using a report template. The report templates * are: *
*
* RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
*
* The Amazon Resource Names (ARNs) of the frameworks a report covers. *
*/ private java.util.List* The number of frameworks a report covers. *
*/ private Integer numberOfFrameworks; /** ** These are the accounts to be included in the report. *
*/ private java.util.List* These are the Organizational Units to be included in the report. *
*/ private java.util.List* These are the Regions to be included in the report. *
*/ private java.util.List* Identifies the report template for the report. Reports are built using a report template. The report templates * are: *
*
* RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
*
* RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
*/
public void setReportTemplate(String reportTemplate) {
this.reportTemplate = reportTemplate;
}
/**
*
* Identifies the report template for the report. Reports are built using a report template. The report templates * are: *
*
* RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
*
* RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
*/
public String getReportTemplate() {
return this.reportTemplate;
}
/**
*
* Identifies the report template for the report. Reports are built using a report template. The report templates * are: *
*
* RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
*
* RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReportSetting withReportTemplate(String reportTemplate) {
setReportTemplate(reportTemplate);
return this;
}
/**
*
* The Amazon Resource Names (ARNs) of the frameworks a report covers. *
* * @return The Amazon Resource Names (ARNs) of the frameworks a report covers. */ public java.util.List* The Amazon Resource Names (ARNs) of the frameworks a report covers. *
* * @param frameworkArns * The Amazon Resource Names (ARNs) of the frameworks a report covers. */ public void setFrameworkArns(java.util.Collection* The Amazon Resource Names (ARNs) of the frameworks a report covers. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFrameworkArns(java.util.Collection)} or {@link #withFrameworkArns(java.util.Collection)} if you want * to override the existing values. *
* * @param frameworkArns * The Amazon Resource Names (ARNs) of the frameworks a report covers. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportSetting withFrameworkArns(String... frameworkArns) { if (this.frameworkArns == null) { setFrameworkArns(new java.util.ArrayList* The Amazon Resource Names (ARNs) of the frameworks a report covers. *
* * @param frameworkArns * The Amazon Resource Names (ARNs) of the frameworks a report covers. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportSetting withFrameworkArns(java.util.Collection* The number of frameworks a report covers. *
* * @param numberOfFrameworks * The number of frameworks a report covers. */ public void setNumberOfFrameworks(Integer numberOfFrameworks) { this.numberOfFrameworks = numberOfFrameworks; } /** ** The number of frameworks a report covers. *
* * @return The number of frameworks a report covers. */ public Integer getNumberOfFrameworks() { return this.numberOfFrameworks; } /** ** The number of frameworks a report covers. *
* * @param numberOfFrameworks * The number of frameworks a report covers. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportSetting withNumberOfFrameworks(Integer numberOfFrameworks) { setNumberOfFrameworks(numberOfFrameworks); return this; } /** ** These are the accounts to be included in the report. *
* * @return These are the accounts to be included in the report. */ public java.util.List* These are the accounts to be included in the report. *
* * @param accounts * These are the accounts to be included in the report. */ public void setAccounts(java.util.Collection* These are the accounts to be included in the report. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAccounts(java.util.Collection)} or {@link #withAccounts(java.util.Collection)} if you want to override * the existing values. *
* * @param accounts * These are the accounts to be included in the report. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportSetting withAccounts(String... accounts) { if (this.accounts == null) { setAccounts(new java.util.ArrayList* These are the accounts to be included in the report. *
* * @param accounts * These are the accounts to be included in the report. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportSetting withAccounts(java.util.Collection* These are the Organizational Units to be included in the report. *
* * @return These are the Organizational Units to be included in the report. */ public java.util.List* These are the Organizational Units to be included in the report. *
* * @param organizationUnits * These are the Organizational Units to be included in the report. */ public void setOrganizationUnits(java.util.Collection* These are the Organizational Units to be included in the report. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setOrganizationUnits(java.util.Collection)} or {@link #withOrganizationUnits(java.util.Collection)} if * you want to override the existing values. *
* * @param organizationUnits * These are the Organizational Units to be included in the report. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportSetting withOrganizationUnits(String... organizationUnits) { if (this.organizationUnits == null) { setOrganizationUnits(new java.util.ArrayList* These are the Organizational Units to be included in the report. *
* * @param organizationUnits * These are the Organizational Units to be included in the report. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportSetting withOrganizationUnits(java.util.Collection* These are the Regions to be included in the report. *
* * @return These are the Regions to be included in the report. */ public java.util.List* These are the Regions to be included in the report. *
* * @param regions * These are the Regions to be included in the report. */ public void setRegions(java.util.Collection* These are the Regions to be included in the report. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRegions(java.util.Collection)} or {@link #withRegions(java.util.Collection)} if you want to override * the existing values. *
* * @param regions * These are the Regions to be included in the report. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportSetting withRegions(String... regions) { if (this.regions == null) { setRegions(new java.util.ArrayList* These are the Regions to be included in the report. *
* * @param regions * These are the Regions to be included in the report. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportSetting withRegions(java.util.Collection