AccessReviewScheduleSettings Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. AccessReviewScheduleSettings
- com.
Implements
public final class AccessReviewScheduleSettings
implements JsonSerializable<AccessReviewScheduleSettings>
Settings of an Access Review.
Constructor Summary
| Constructor | Description |
|---|---|
| AccessReviewScheduleSettings() |
Creates an instance of Access |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
autoApplyDecisionsEnabled()
Get the auto |
|
Default |
defaultDecision()
Get the default |
| Boolean |
defaultDecisionEnabled()
Get the default |
|
Offset |
endDate()
Get the end |
|
static
Access |
fromJson(JsonReader jsonReader)
Reads an instance of Access |
| Integer |
instanceDurationInDays()
Get the instance |
| Integer |
interval()
Get the interval property: The interval for recurrence. |
| Boolean |
justificationRequiredOnApproval()
Get the justification |
| Boolean |
mailNotificationsEnabled()
Get the mail |
| Integer |
numberOfOccurrences()
Get the number |
| Duration |
recommendationLookBackDuration()
Get the recommendation |
| Boolean |
recommendationsEnabled()
Get the recommendations |
| Boolean |
reminderNotificationsEnabled()
Get the reminder |
|
Offset |
startDate()
Get the start |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Access |
type()
Get the type property: The recurrence type : weekly, monthly, etc. |
|
Access |
typeRangeType()
Get the type |
| void |
validate()
Validates the instance. |
|
Access |
withAutoApplyDecisionsEnabled(Boolean autoApplyDecisionsEnabled)
Set the auto |
|
Access |
withDefaultDecision(DefaultDecisionType defaultDecision)
Set the default |
|
Access |
withDefaultDecisionEnabled(Boolean defaultDecisionEnabled)
Set the default |
|
Access |
withEndDate(OffsetDateTime endDate)
Set the end |
|
Access |
withInstanceDurationInDays(Integer instanceDurationInDays)
Set the instance |
|
Access |
withInterval(Integer interval)
Set the interval property: The interval for recurrence. |
|
Access |
withJustificationRequiredOnApproval(Boolean justificationRequiredOnApproval)
Set the justification |
|
Access |
withMailNotificationsEnabled(Boolean mailNotificationsEnabled)
Set the mail |
|
Access |
withNumberOfOccurrences(Integer numberOfOccurrences)
Set the number |
|
Access |
withRecommendationLookBackDuration(Duration recommendationLookBackDuration)
Set the recommendation |
|
Access |
withRecommendationsEnabled(Boolean recommendationsEnabled)
Set the recommendations |
|
Access |
withReminderNotificationsEnabled(Boolean reminderNotificationsEnabled)
Set the reminder |
|
Access |
withStartDate(OffsetDateTime startDate)
Set the start |
|
Access |
withType(AccessReviewRecurrencePatternType type)
Set the type property: The recurrence type : weekly, monthly, etc. |
|
Access |
withTypeRangeType(AccessReviewRecurrenceRangeType typeRangeType)
Set the type |
Methods inherited from java.lang.Object
Constructor Details
AccessReviewScheduleSettings
public AccessReviewScheduleSettings()
Creates an instance of AccessReviewScheduleSettings class.
Method Details
autoApplyDecisionsEnabled
public Boolean autoApplyDecisionsEnabled()
Get the autoApplyDecisionsEnabled property: Flag to indicate whether auto-apply capability, to automatically change the target object access resource, is enabled. If not enabled, a user must, after the review completes, apply the access review.
Returns:
defaultDecision
public DefaultDecisionType defaultDecision()
Get the defaultDecision property: This specifies the behavior for the autoReview feature when an access review completes.
Returns:
defaultDecisionEnabled
public Boolean defaultDecisionEnabled()
Get the defaultDecisionEnabled property: Flag to indicate whether reviewers are required to provide a justification when reviewing access.
Returns:
endDate
public OffsetDateTime endDate()
Get the endDate property: The DateTime when the review is scheduled to end. Required if type is endDate.
Returns:
fromJson
public static AccessReviewScheduleSettings fromJson(JsonReader jsonReader)
Reads an instance of AccessReviewScheduleSettings from the JsonReader.
Parameters:
Returns:
Throws:
instanceDurationInDays
public Integer instanceDurationInDays()
Get the instanceDurationInDays property: The duration in days for an instance.
Returns:
interval
public Integer interval()
Get the interval property: The interval for recurrence. For a quarterly review, the interval is 3 for type : absoluteMonthly.
Returns:
justificationRequiredOnApproval
public Boolean justificationRequiredOnApproval()
Get the justificationRequiredOnApproval property: Flag to indicate whether the reviewer is required to pass justification when recording a decision.
Returns:
mailNotificationsEnabled
public Boolean mailNotificationsEnabled()
Get the mailNotificationsEnabled property: Flag to indicate whether sending mails to reviewers and the review creator is enabled.
Returns:
numberOfOccurrences
public Integer numberOfOccurrences()
Get the numberOfOccurrences property: The number of times to repeat the access review. Required and must be positive if type is numbered.
Returns:
recommendationLookBackDuration
public Duration recommendationLookBackDuration()
Get the recommendationLookBackDuration property: Recommendations for access reviews are calculated by looking back at 30 days of data(w.r.t the start date of the review) by default. However, in some scenarios, customers want to change how far back to look at and want to configure 60 days, 90 days, etc. instead. This setting allows customers to configure this duration. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO\_8601\#Durations).This code can be used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new TimeSpan(hours, minutes, seconds)).
Returns:
recommendationsEnabled
public Boolean recommendationsEnabled()
Get the recommendationsEnabled property: Flag to indicate whether showing recommendations to reviewers is enabled.
Returns:
reminderNotificationsEnabled
public Boolean reminderNotificationsEnabled()
Get the reminderNotificationsEnabled property: Flag to indicate whether sending reminder emails to reviewers are enabled.
Returns:
startDate
public OffsetDateTime startDate()
Get the startDate property: The DateTime when the review is scheduled to be start. This could be a date in the future. Required on create.
Returns:
toJson
type
public AccessReviewRecurrencePatternType type()
Get the type property: The recurrence type : weekly, monthly, etc.
Returns:
typeRangeType
public AccessReviewRecurrenceRangeType typeRangeType()
Get the typeRangeType property: The recurrence range type. The possible values are: endDate, noEnd, numbered.
Returns:
validate
public void validate()
Validates the instance.
withAutoApplyDecisionsEnabled
public AccessReviewScheduleSettings withAutoApplyDecisionsEnabled(Boolean autoApplyDecisionsEnabled)
Set the autoApplyDecisionsEnabled property: Flag to indicate whether auto-apply capability, to automatically change the target object access resource, is enabled. If not enabled, a user must, after the review completes, apply the access review.
Parameters:
Returns:
withDefaultDecision
public AccessReviewScheduleSettings withDefaultDecision(DefaultDecisionType defaultDecision)
Set the defaultDecision property: This specifies the behavior for the autoReview feature when an access review completes.
Parameters:
Returns:
withDefaultDecisionEnabled
public AccessReviewScheduleSettings withDefaultDecisionEnabled(Boolean defaultDecisionEnabled)
Set the defaultDecisionEnabled property: Flag to indicate whether reviewers are required to provide a justification when reviewing access.
Parameters:
Returns:
withEndDate
public AccessReviewScheduleSettings withEndDate(OffsetDateTime endDate)
Set the endDate property: The DateTime when the review is scheduled to end. Required if type is endDate.
Parameters:
Returns:
withInstanceDurationInDays
public AccessReviewScheduleSettings withInstanceDurationInDays(Integer instanceDurationInDays)
Set the instanceDurationInDays property: The duration in days for an instance.
Parameters:
Returns:
withInterval
public AccessReviewScheduleSettings withInterval(Integer interval)
Set the interval property: The interval for recurrence. For a quarterly review, the interval is 3 for type : absoluteMonthly.
Parameters:
Returns:
withJustificationRequiredOnApproval
public AccessReviewScheduleSettings withJustificationRequiredOnApproval(Boolean justificationRequiredOnApproval)
Set the justificationRequiredOnApproval property: Flag to indicate whether the reviewer is required to pass justification when recording a decision.
Parameters:
Returns:
withMailNotificationsEnabled
public AccessReviewScheduleSettings withMailNotificationsEnabled(Boolean mailNotificationsEnabled)
Set the mailNotificationsEnabled property: Flag to indicate whether sending mails to reviewers and the review creator is enabled.
Parameters:
Returns:
withNumberOfOccurrences
public AccessReviewScheduleSettings withNumberOfOccurrences(Integer numberOfOccurrences)
Set the numberOfOccurrences property: The number of times to repeat the access review. Required and must be positive if type is numbered.
Parameters:
Returns:
withRecommendationLookBackDuration
public AccessReviewScheduleSettings withRecommendationLookBackDuration(Duration recommendationLookBackDuration)
Set the recommendationLookBackDuration property: Recommendations for access reviews are calculated by looking back at 30 days of data(w.r.t the start date of the review) by default. However, in some scenarios, customers want to change how far back to look at and want to configure 60 days, 90 days, etc. instead. This setting allows customers to configure this duration. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO\_8601\#Durations).This code can be used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new TimeSpan(hours, minutes, seconds)).
Parameters:
Returns:
withRecommendationsEnabled
public AccessReviewScheduleSettings withRecommendationsEnabled(Boolean recommendationsEnabled)
Set the recommendationsEnabled property: Flag to indicate whether showing recommendations to reviewers is enabled.
Parameters:
Returns:
withReminderNotificationsEnabled
public AccessReviewScheduleSettings withReminderNotificationsEnabled(Boolean reminderNotificationsEnabled)
Set the reminderNotificationsEnabled property: Flag to indicate whether sending reminder emails to reviewers are enabled.
Parameters:
Returns:
withStartDate
public AccessReviewScheduleSettings withStartDate(OffsetDateTime startDate)
Set the startDate property: The DateTime when the review is scheduled to be start. This could be a date in the future. Required on create.
Parameters:
Returns:
withType
public AccessReviewScheduleSettings withType(AccessReviewRecurrencePatternType type)
Set the type property: The recurrence type : weekly, monthly, etc.
Parameters:
Returns:
withTypeRangeType
public AccessReviewScheduleSettings withTypeRangeType(AccessReviewRecurrenceRangeType typeRangeType)
Set the typeRangeType property: The recurrence range type. The possible values are: endDate, noEnd, numbered.
Parameters:
Returns: