/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { /** *

Specifies a monthly recurrence pattern for running a classification * job.

See Also:

AWS * API Reference

*/ class MonthlySchedule { public: AWS_MACIE2_API MonthlySchedule(); AWS_MACIE2_API MonthlySchedule(Aws::Utils::Json::JsonView jsonValue); AWS_MACIE2_API MonthlySchedule& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The numeric day of the month when Amazon Macie runs the job. This value can * be an integer from 1 through 31.

If this value exceeds the number of days * in a certain month, Macie doesn't run the job that month. Macie runs the job * only during months that have the specified day. For example, if this value is 31 * and a month has only 30 days, Macie doesn't run the job that month. To run the * job every month, specify a value that's less than 29.

*/ inline int GetDayOfMonth() const{ return m_dayOfMonth; } /** *

The numeric day of the month when Amazon Macie runs the job. This value can * be an integer from 1 through 31.

If this value exceeds the number of days * in a certain month, Macie doesn't run the job that month. Macie runs the job * only during months that have the specified day. For example, if this value is 31 * and a month has only 30 days, Macie doesn't run the job that month. To run the * job every month, specify a value that's less than 29.

*/ inline bool DayOfMonthHasBeenSet() const { return m_dayOfMonthHasBeenSet; } /** *

The numeric day of the month when Amazon Macie runs the job. This value can * be an integer from 1 through 31.

If this value exceeds the number of days * in a certain month, Macie doesn't run the job that month. Macie runs the job * only during months that have the specified day. For example, if this value is 31 * and a month has only 30 days, Macie doesn't run the job that month. To run the * job every month, specify a value that's less than 29.

*/ inline void SetDayOfMonth(int value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = value; } /** *

The numeric day of the month when Amazon Macie runs the job. This value can * be an integer from 1 through 31.

If this value exceeds the number of days * in a certain month, Macie doesn't run the job that month. Macie runs the job * only during months that have the specified day. For example, if this value is 31 * and a month has only 30 days, Macie doesn't run the job that month. To run the * job every month, specify a value that's less than 29.

*/ inline MonthlySchedule& WithDayOfMonth(int value) { SetDayOfMonth(value); return *this;} private: int m_dayOfMonth; bool m_dayOfMonthHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws