
com.azure.communication.jobrouter.implementation.models.ExceptionPolicyInternal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-communication-jobrouter Show documentation
Show all versions of azure-communication-jobrouter Show documentation
This package contains a Java SDK for JobRouter Azure Communication Service.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.communication.jobrouter.implementation.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* A policy that defines actions to execute when exception are triggered.
*/
@Fluent
public final class ExceptionPolicyInternal {
/*
* Id of an exception policy.
*/
@Generated
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;
/*
* Friendly name of this policy.
*/
@Generated
@JsonProperty(value = "name")
private String name;
/*
* A collection of exception rules on the exception policy.
*/
@Generated
@JsonProperty(value = "exceptionRules")
private List exceptionRules;
/**
* Creates an instance of ExceptionPolicyInternal class.
*/
@Generated
public ExceptionPolicyInternal() {
}
/**
* Get the id property: Id of an exception policy.
*
* @return the id value.
*/
@Generated
public String getId() {
return this.id;
}
/**
* Get the name property: Friendly name of this policy.
*
* @return the name value.
*/
@Generated
public String getName() {
return this.name;
}
/**
* Set the name property: Friendly name of this policy.
*
* @param name the name value to set.
* @return the ExceptionPolicyInternal object itself.
*/
@Generated
public ExceptionPolicyInternal setName(String name) {
this.name = name;
return this;
}
/**
* Get the exceptionRules property: A collection of exception rules on the exception policy.
*
* @return the exceptionRules value.
*/
@Generated
public List getExceptionRules() {
return this.exceptionRules;
}
/*
* The entity tag for this resource.
*/
@Generated
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
/**
* Get the etag property: The entity tag for this resource.
*
* @return the etag value.
*/
@Generated
public String getEtag() {
return this.etag;
}
/**
* Set the exceptionRules property: A collection of exception rules on the exception policy.
*
* @param exceptionRules the exceptionRules value to set.
* @return the ExceptionPolicyInternal object itself.
*/
@Generated
public ExceptionPolicyInternal setExceptionRules(List exceptionRules) {
this.exceptionRules = exceptionRules;
return this;
}
/**
* Set id.
*
* @param id id.
* @return this.
*/
public ExceptionPolicyInternal setId(String id) {
this.id = id;
return this;
}
/**
* Set etag
*
* @param etag etag.
* @return this.
*/
public ExceptionPolicyInternal setEtag(String etag) {
this.etag = etag;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy