|
| 1 | +package com.sportradar.mbs.sdk.entities.request; |
| 2 | + |
| 3 | +import com.sportradar.mbs.sdk.entities.common.Method; |
| 4 | +import com.sportradar.mbs.sdk.entities.common.EndCustomer; |
| 5 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 6 | + |
| 7 | +/** |
| 8 | + * Represents a request entity for an intervention inform request. |
| 9 | + * This class extends ContentRequest and includes method, model initiation flag, end customer, and a comment. |
| 10 | + */ |
| 11 | +public class InterventionInformRequest extends ContentRequest { |
| 12 | + |
| 13 | + @JsonProperty("method") |
| 14 | + private Method method; // The method associated with the intervention request |
| 15 | + |
| 16 | + @JsonProperty("modelInitiated") |
| 17 | + private boolean modelInitiated; // Flag indicating if the model initiated the request |
| 18 | + |
| 19 | + @JsonProperty("endCustomer") |
| 20 | + private EndCustomer endCustomer; // Details of the end customer involved in the request |
| 21 | + |
| 22 | + @JsonProperty("comment") |
| 23 | + private String comment; // Additional comment or description related to the request |
| 24 | + |
| 25 | + /** |
| 26 | + * Gets the method associated with the request. |
| 27 | + * |
| 28 | + * @return The method of the request. |
| 29 | + */ |
| 30 | + public Method getMethod() { |
| 31 | + return this.method; |
| 32 | + } |
| 33 | + |
| 34 | + /** |
| 35 | + * Sets the method for the request. |
| 36 | + * |
| 37 | + * @param value The method to set. |
| 38 | + */ |
| 39 | + public void setMethod(Method value) { |
| 40 | + this.method = value; |
| 41 | + } |
| 42 | + |
| 43 | + /** |
| 44 | + * Gets the model initiated flag. |
| 45 | + * |
| 46 | + * @return True if the model initiated the request, false otherwise. |
| 47 | + */ |
| 48 | + public boolean getModelInitiated() { |
| 49 | + return this.modelInitiated; |
| 50 | + } |
| 51 | + |
| 52 | + /** |
| 53 | + * Sets whether the model initiated the request. |
| 54 | + * |
| 55 | + * @param value True if the model initiated the request, false otherwise. |
| 56 | + */ |
| 57 | + public void setModelInitiated(boolean value) { |
| 58 | + this.modelInitiated = value; |
| 59 | + } |
| 60 | + |
| 61 | + /** |
| 62 | + * Gets the end customer associated with the request. |
| 63 | + * |
| 64 | + * @return The end customer details. |
| 65 | + */ |
| 66 | + public EndCustomer getEndCustomer() { |
| 67 | + return this.endCustomer; |
| 68 | + } |
| 69 | + |
| 70 | + /** |
| 71 | + * Sets the end customer details for the request. |
| 72 | + * |
| 73 | + * @param value The end customer to set. |
| 74 | + */ |
| 75 | + public void setEndCustomer(EndCustomer value) { |
| 76 | + this.endCustomer = value; |
| 77 | + } |
| 78 | + |
| 79 | + /** |
| 80 | + * Gets the comment associated with the request. |
| 81 | + * |
| 82 | + * @return The request comment. |
| 83 | + */ |
| 84 | + public String getComment() { |
| 85 | + return this.comment; |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * Sets the comment for the request. |
| 90 | + * |
| 91 | + * @param value The comment to set. |
| 92 | + */ |
| 93 | + public void setComment(String value) { |
| 94 | + this.comment = value; |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * Creates a new Builder instance for constructing an InterventionInformRequest object. |
| 99 | + * |
| 100 | + * @return A new Builder instance. |
| 101 | + */ |
| 102 | + public static Builder newBuilder() { |
| 103 | + return new Builder(); |
| 104 | + } |
| 105 | + |
| 106 | + /** |
| 107 | + * Builder class for creating instances of InterventionInformRequest. |
| 108 | + */ |
| 109 | + public static class Builder { |
| 110 | + |
| 111 | + private final InterventionInformRequest instance = new InterventionInformRequest(); |
| 112 | + |
| 113 | + /** |
| 114 | + * Private constructor to prevent direct instantiation. |
| 115 | + */ |
| 116 | + private Builder() { |
| 117 | + } |
| 118 | + |
| 119 | + /** |
| 120 | + * Builds and returns the InterventionInformRequest object. |
| 121 | + * |
| 122 | + * @return The constructed InterventionInformRequest object. |
| 123 | + */ |
| 124 | + public InterventionInformRequest build() { |
| 125 | + return this.instance; |
| 126 | + } |
| 127 | + |
| 128 | + /** |
| 129 | + * Sets the method in the builder instance. |
| 130 | + * |
| 131 | + * @param value The method to set. |
| 132 | + * @return The Builder instance for method chaining. |
| 133 | + */ |
| 134 | + public Builder setMethod(Method value) { |
| 135 | + this.instance.setMethod(value); |
| 136 | + return this; |
| 137 | + } |
| 138 | + |
| 139 | + /** |
| 140 | + * Sets the model initiation flag in the builder instance. |
| 141 | + * |
| 142 | + * @param value The model initiation flag to set. |
| 143 | + * @return The Builder instance for method chaining. |
| 144 | + */ |
| 145 | + public Builder setModelInitiated(boolean value) { |
| 146 | + this.instance.setModelInitiated(value); |
| 147 | + return this; |
| 148 | + } |
| 149 | + |
| 150 | + /** |
| 151 | + * Sets the end customer in the builder instance. |
| 152 | + * |
| 153 | + * @param value The end customer to set. |
| 154 | + * @return The Builder instance for method chaining. |
| 155 | + */ |
| 156 | + public Builder setEndCustomer(EndCustomer value) { |
| 157 | + this.instance.setEndCustomer(value); |
| 158 | + return this; |
| 159 | + } |
| 160 | + |
| 161 | + /** |
| 162 | + * Sets the comment in the builder instance. |
| 163 | + * |
| 164 | + * @param value The comment to set. |
| 165 | + * @return The Builder instance for method chaining. |
| 166 | + */ |
| 167 | + public Builder setComment(String value) { |
| 168 | + this.instance.setComment(value); |
| 169 | + return this; |
| 170 | + } |
| 171 | + } |
| 172 | +} |
0 commit comments