/* * Copyright 2018-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.route53recoverycontrolconfig.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* The request body that you include when you create a safety rule. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateSafetyRuleRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The assertion rule requested. *
*/ private NewAssertionRule assertionRule; /** ** A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an action, * specify a client token in the request. *
*/ private String clientToken; /** ** The gating rule requested. *
*/ private NewGatingRule gatingRule; /** ** The tags associated with the safety rule. *
*/ private java.util.Map* The assertion rule requested. *
* * @param assertionRule * The assertion rule requested. */ public void setAssertionRule(NewAssertionRule assertionRule) { this.assertionRule = assertionRule; } /** ** The assertion rule requested. *
* * @return The assertion rule requested. */ public NewAssertionRule getAssertionRule() { return this.assertionRule; } /** ** The assertion rule requested. *
* * @param assertionRule * The assertion rule requested. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSafetyRuleRequest withAssertionRule(NewAssertionRule assertionRule) { setAssertionRule(assertionRule); return this; } /** ** A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an action, * specify a client token in the request. *
* * @param clientToken * A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an * action, specify a client token in the request. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an action, * specify a client token in the request. *
* * @return A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an * action, specify a client token in the request. */ public String getClientToken() { return this.clientToken; } /** ** A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an action, * specify a client token in the request. *
* * @param clientToken * A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an * action, specify a client token in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSafetyRuleRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** The gating rule requested. *
* * @param gatingRule * The gating rule requested. */ public void setGatingRule(NewGatingRule gatingRule) { this.gatingRule = gatingRule; } /** ** The gating rule requested. *
* * @return The gating rule requested. */ public NewGatingRule getGatingRule() { return this.gatingRule; } /** ** The gating rule requested. *
* * @param gatingRule * The gating rule requested. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSafetyRuleRequest withGatingRule(NewGatingRule gatingRule) { setGatingRule(gatingRule); return this; } /** ** The tags associated with the safety rule. *
* * @return The tags associated with the safety rule. */ public java.util.Map* The tags associated with the safety rule. *
* * @param tags * The tags associated with the safety rule. */ public void setTags(java.util.Map* The tags associated with the safety rule. *
* * @param tags * The tags associated with the safety rule. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSafetyRuleRequest withTags(java.util.Map