/* * Copyright 2010-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.iot.model; import java.io.Serializable; import com.amazonaws.AmazonWebServiceRequest; /** *
* Creates a scheduled audit that is run at a specified time interval. *
** Requires permission to access the CreateScheduledAudit action. *
*/ public class CreateScheduledAuditRequest extends AmazonWebServiceRequest implements Serializable { /** *
* How often the scheduled audit takes place, either DAILY
,
* WEEKLY
, BIWEEKLY
or MONTHLY
. The
* start time of each audit is determined by the system.
*
* Constraints:
* Allowed Values: DAILY, WEEKLY, BIWEEKLY, MONTHLY
*/
private String frequency;
/**
*
* The day of the month on which the scheduled audit takes place. This can
* be "1" through "31" or "LAST". This field is required if the "frequency"
* parameter is set to MONTHLY
. If days 29 to 31 are specified,
* and the month doesn't have that many days, the audit takes place on the
* LAST
day of the month.
*
* Constraints:
* Pattern: ^([1-9]|[12][0-9]|3[01])$|^LAST$
*/
private String dayOfMonth;
/**
*
* The day of the week on which the scheduled audit takes place, either
* SUN
, MON
, TUE
, WED
,
* THU
, FRI
, or SAT
. This field is
* required if the frequency
parameter is set to
* WEEKLY
or BIWEEKLY
.
*
* Constraints:
* Allowed Values: SUN, MON, TUE, WED, THU, FRI, SAT
*/
private String dayOfWeek;
/**
*
* Which checks are performed during the scheduled audit. Checks must be
* enabled for your account. (Use
* DescribeAccountAuditConfiguration
to see the list of all
* checks, including those that are enabled or use
* UpdateAccountAuditConfiguration
to select which checks are
* enabled.)
*
* The name you want to give to the scheduled audit. (Max. 128 chars) *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9_-]+
*/
private String scheduledAuditName;
/**
*
* Metadata that can be used to manage the scheduled audit. *
*/ private java.util.List
* How often the scheduled audit takes place, either DAILY
,
* WEEKLY
, BIWEEKLY
or MONTHLY
. The
* start time of each audit is determined by the system.
*
* Constraints:
* Allowed Values: DAILY, WEEKLY, BIWEEKLY, MONTHLY
*
* @return
* How often the scheduled audit takes place, either
* DAILY
, WEEKLY
, BIWEEKLY
or
* MONTHLY
. The start time of each audit is determined
* by the system.
*
* How often the scheduled audit takes place, either DAILY
,
* WEEKLY
, BIWEEKLY
or MONTHLY
. The
* start time of each audit is determined by the system.
*
* Constraints:
* Allowed Values: DAILY, WEEKLY, BIWEEKLY, MONTHLY
*
* @param frequency
* How often the scheduled audit takes place, either
* DAILY
, WEEKLY
, BIWEEKLY
* or MONTHLY
. The start time of each audit is
* determined by the system.
*
* How often the scheduled audit takes place, either DAILY
,
* WEEKLY
, BIWEEKLY
or MONTHLY
. The
* start time of each audit is determined by the system.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: DAILY, WEEKLY, BIWEEKLY, MONTHLY
*
* @param frequency
* How often the scheduled audit takes place, either
* DAILY
, WEEKLY
, BIWEEKLY
* or MONTHLY
. The start time of each audit is
* determined by the system.
*
* How often the scheduled audit takes place, either DAILY
,
* WEEKLY
, BIWEEKLY
or MONTHLY
. The
* start time of each audit is determined by the system.
*
* Constraints:
* Allowed Values: DAILY, WEEKLY, BIWEEKLY, MONTHLY
*
* @param frequency
* How often the scheduled audit takes place, either
* DAILY
, WEEKLY
, BIWEEKLY
* or MONTHLY
. The start time of each audit is
* determined by the system.
*
* How often the scheduled audit takes place, either DAILY
,
* WEEKLY
, BIWEEKLY
or MONTHLY
. The
* start time of each audit is determined by the system.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: DAILY, WEEKLY, BIWEEKLY, MONTHLY
*
* @param frequency
* How often the scheduled audit takes place, either
* DAILY
, WEEKLY
, BIWEEKLY
* or MONTHLY
. The start time of each audit is
* determined by the system.
*
* The day of the month on which the scheduled audit takes place. This can
* be "1" through "31" or "LAST". This field is required if the "frequency"
* parameter is set to MONTHLY
. If days 29 to 31 are specified,
* and the month doesn't have that many days, the audit takes place on the
* LAST
day of the month.
*
* Constraints:
* Pattern: ^([1-9]|[12][0-9]|3[01])$|^LAST$
*
* @return
* The day of the month on which the scheduled audit takes place.
* This can be "1" through "31" or "LAST". This field is required if
* the "frequency" parameter is set to MONTHLY
. If days
* 29 to 31 are specified, and the month doesn't have that many
* days, the audit takes place on the LAST
day of the
* month.
*
* The day of the month on which the scheduled audit takes place. This can
* be "1" through "31" or "LAST". This field is required if the "frequency"
* parameter is set to MONTHLY
. If days 29 to 31 are specified,
* and the month doesn't have that many days, the audit takes place on the
* LAST
day of the month.
*
* Constraints:
* Pattern: ^([1-9]|[12][0-9]|3[01])$|^LAST$
*
* @param dayOfMonth
* The day of the month on which the scheduled audit takes place.
* This can be "1" through "31" or "LAST". This field is required
* if the "frequency" parameter is set to MONTHLY
.
* If days 29 to 31 are specified, and the month doesn't have
* that many days, the audit takes place on the LAST
* day of the month.
*
* The day of the month on which the scheduled audit takes place. This can
* be "1" through "31" or "LAST". This field is required if the "frequency"
* parameter is set to MONTHLY
. If days 29 to 31 are specified,
* and the month doesn't have that many days, the audit takes place on the
* LAST
day of the month.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Pattern: ^([1-9]|[12][0-9]|3[01])$|^LAST$
*
* @param dayOfMonth
* The day of the month on which the scheduled audit takes place.
* This can be "1" through "31" or "LAST". This field is required
* if the "frequency" parameter is set to MONTHLY
.
* If days 29 to 31 are specified, and the month doesn't have
* that many days, the audit takes place on the LAST
* day of the month.
*
* The day of the week on which the scheduled audit takes place, either
* SUN
, MON
, TUE
, WED
,
* THU
, FRI
, or SAT
. This field is
* required if the frequency
parameter is set to
* WEEKLY
or BIWEEKLY
.
*
* Constraints:
* Allowed Values: SUN, MON, TUE, WED, THU, FRI, SAT
*
* @return
* The day of the week on which the scheduled audit takes place,
* either SUN
, MON
, TUE
,
* WED
, THU
, FRI
, or
* SAT
. This field is required if the
* frequency
parameter is set to WEEKLY
or
* BIWEEKLY
.
*
* The day of the week on which the scheduled audit takes place, either
* SUN
, MON
, TUE
, WED
,
* THU
, FRI
, or SAT
. This field is
* required if the frequency
parameter is set to
* WEEKLY
or BIWEEKLY
.
*
* Constraints:
* Allowed Values: SUN, MON, TUE, WED, THU, FRI, SAT
*
* @param dayOfWeek
* The day of the week on which the scheduled audit takes place,
* either SUN
, MON
, TUE
,
* WED
, THU
, FRI
, or
* SAT
. This field is required if the
* frequency
parameter is set to WEEKLY
* or BIWEEKLY
.
*
* The day of the week on which the scheduled audit takes place, either
* SUN
, MON
, TUE
, WED
,
* THU
, FRI
, or SAT
. This field is
* required if the frequency
parameter is set to
* WEEKLY
or BIWEEKLY
.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: SUN, MON, TUE, WED, THU, FRI, SAT
*
* @param dayOfWeek
* The day of the week on which the scheduled audit takes place,
* either SUN
, MON
, TUE
,
* WED
, THU
, FRI
, or
* SAT
. This field is required if the
* frequency
parameter is set to WEEKLY
* or BIWEEKLY
.
*
* The day of the week on which the scheduled audit takes place, either
* SUN
, MON
, TUE
, WED
,
* THU
, FRI
, or SAT
. This field is
* required if the frequency
parameter is set to
* WEEKLY
or BIWEEKLY
.
*
* Constraints:
* Allowed Values: SUN, MON, TUE, WED, THU, FRI, SAT
*
* @param dayOfWeek
* The day of the week on which the scheduled audit takes place,
* either SUN
, MON
, TUE
,
* WED
, THU
, FRI
, or
* SAT
. This field is required if the
* frequency
parameter is set to WEEKLY
* or BIWEEKLY
.
*
* The day of the week on which the scheduled audit takes place, either
* SUN
, MON
, TUE
, WED
,
* THU
, FRI
, or SAT
. This field is
* required if the frequency
parameter is set to
* WEEKLY
or BIWEEKLY
.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: SUN, MON, TUE, WED, THU, FRI, SAT
*
* @param dayOfWeek
* The day of the week on which the scheduled audit takes place,
* either SUN
, MON
, TUE
,
* WED
, THU
, FRI
, or
* SAT
. This field is required if the
* frequency
parameter is set to WEEKLY
* or BIWEEKLY
.
*
* Which checks are performed during the scheduled audit. Checks must be
* enabled for your account. (Use
* DescribeAccountAuditConfiguration
to see the list of all
* checks, including those that are enabled or use
* UpdateAccountAuditConfiguration
to select which checks are
* enabled.)
*
* Which checks are performed during the scheduled audit. Checks
* must be enabled for your account. (Use
* DescribeAccountAuditConfiguration
to see the list of
* all checks, including those that are enabled or use
* UpdateAccountAuditConfiguration
to select which
* checks are enabled.)
*
* Which checks are performed during the scheduled audit. Checks must be
* enabled for your account. (Use
* DescribeAccountAuditConfiguration
to see the list of all
* checks, including those that are enabled or use
* UpdateAccountAuditConfiguration
to select which checks are
* enabled.)
*
* Which checks are performed during the scheduled audit. Checks
* must be enabled for your account. (Use
* DescribeAccountAuditConfiguration
to see the list
* of all checks, including those that are enabled or use
* UpdateAccountAuditConfiguration
to select which
* checks are enabled.)
*
* Which checks are performed during the scheduled audit. Checks must be
* enabled for your account. (Use
* DescribeAccountAuditConfiguration
to see the list of all
* checks, including those that are enabled or use
* UpdateAccountAuditConfiguration
to select which checks are
* enabled.)
*
* Returns a reference to this object so that method calls can be chained * together. * * @param targetCheckNames
* Which checks are performed during the scheduled audit. Checks
* must be enabled for your account. (Use
* DescribeAccountAuditConfiguration
to see the list
* of all checks, including those that are enabled or use
* UpdateAccountAuditConfiguration
to select which
* checks are enabled.)
*
* Which checks are performed during the scheduled audit. Checks must be
* enabled for your account. (Use
* DescribeAccountAuditConfiguration
to see the list of all
* checks, including those that are enabled or use
* UpdateAccountAuditConfiguration
to select which checks are
* enabled.)
*
* Returns a reference to this object so that method calls can be chained * together. * * @param targetCheckNames
* Which checks are performed during the scheduled audit. Checks
* must be enabled for your account. (Use
* DescribeAccountAuditConfiguration
to see the list
* of all checks, including those that are enabled or use
* UpdateAccountAuditConfiguration
to select which
* checks are enabled.)
*
* The name you want to give to the scheduled audit. (Max. 128 chars) *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9_-]+
*
* @return
* The name you want to give to the scheduled audit. (Max. 128 * chars) *
*/ public String getScheduledAuditName() { return scheduledAuditName; } /** ** The name you want to give to the scheduled audit. (Max. 128 chars) *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9_-]+
*
* @param scheduledAuditName
* The name you want to give to the scheduled audit. (Max. 128 * chars) *
*/ public void setScheduledAuditName(String scheduledAuditName) { this.scheduledAuditName = scheduledAuditName; } /** ** The name you want to give to the scheduled audit. (Max. 128 chars) *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9_-]+
*
* @param scheduledAuditName
* The name you want to give to the scheduled audit. (Max. 128 * chars) *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateScheduledAuditRequest withScheduledAuditName(String scheduledAuditName) { this.scheduledAuditName = scheduledAuditName; return this; } /** ** Metadata that can be used to manage the scheduled audit. *
* * @return* Metadata that can be used to manage the scheduled audit. *
*/ public java.util.List* Metadata that can be used to manage the scheduled audit. *
* * @param tags* Metadata that can be used to manage the scheduled audit. *
*/ public void setTags(java.util.Collection* Metadata that can be used to manage the scheduled audit. *
** Returns a reference to this object so that method calls can be chained * together. * * @param tags
* Metadata that can be used to manage the scheduled audit. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateScheduledAuditRequest withTags(Tag... tags) { if (getTags() == null) { this.tags = new java.util.ArrayList* Metadata that can be used to manage the scheduled audit. *
** Returns a reference to this object so that method calls can be chained * together. * * @param tags
* Metadata that can be used to manage the scheduled audit. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateScheduledAuditRequest withTags(java.util.Collection