/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The request body that you include when you create a safety
* rule.See Also:
AWS
* API Reference
The assertion rule requested.
*/ inline const NewAssertionRule& GetAssertionRule() const{ return m_assertionRule; } /** *The assertion rule requested.
*/ inline bool AssertionRuleHasBeenSet() const { return m_assertionRuleHasBeenSet; } /** *The assertion rule requested.
*/ inline void SetAssertionRule(const NewAssertionRule& value) { m_assertionRuleHasBeenSet = true; m_assertionRule = value; } /** *The assertion rule requested.
*/ inline void SetAssertionRule(NewAssertionRule&& value) { m_assertionRuleHasBeenSet = true; m_assertionRule = std::move(value); } /** *The assertion rule requested.
*/ inline CreateSafetyRuleRequest& WithAssertionRule(const NewAssertionRule& value) { SetAssertionRule(value); return *this;} /** *The assertion rule requested.
*/ inline CreateSafetyRuleRequest& WithAssertionRule(NewAssertionRule&& value) { SetAssertionRule(std::move(value)); 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.
*/ inline const Aws::String& GetClientToken() const{ return m_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.
*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *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.
*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *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.
*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *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.
*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *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.
*/ inline CreateSafetyRuleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); 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.
*/ inline CreateSafetyRuleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); 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.
*/ inline CreateSafetyRuleRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *The gating rule requested.
*/ inline const NewGatingRule& GetGatingRule() const{ return m_gatingRule; } /** *The gating rule requested.
*/ inline bool GatingRuleHasBeenSet() const { return m_gatingRuleHasBeenSet; } /** *The gating rule requested.
*/ inline void SetGatingRule(const NewGatingRule& value) { m_gatingRuleHasBeenSet = true; m_gatingRule = value; } /** *The gating rule requested.
*/ inline void SetGatingRule(NewGatingRule&& value) { m_gatingRuleHasBeenSet = true; m_gatingRule = std::move(value); } /** *The gating rule requested.
*/ inline CreateSafetyRuleRequest& WithGatingRule(const NewGatingRule& value) { SetGatingRule(value); return *this;} /** *The gating rule requested.
*/ inline CreateSafetyRuleRequest& WithGatingRule(NewGatingRule&& value) { SetGatingRule(std::move(value)); return *this;} /** *The tags associated with the safety rule.
*/ inline const Aws::MapThe tags associated with the safety rule.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags associated with the safety rule.
*/ inline void SetTags(const Aws::MapThe tags associated with the safety rule.
*/ inline void SetTags(Aws::MapThe tags associated with the safety rule.
*/ inline CreateSafetyRuleRequest& WithTags(const Aws::MapThe tags associated with the safety rule.
*/ inline CreateSafetyRuleRequest& WithTags(Aws::MapThe tags associated with the safety rule.
*/ inline CreateSafetyRuleRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *The tags associated with the safety rule.
*/ inline CreateSafetyRuleRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The tags associated with the safety rule.
*/ inline CreateSafetyRuleRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The tags associated with the safety rule.
*/ inline CreateSafetyRuleRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *The tags associated with the safety rule.
*/ inline CreateSafetyRuleRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The tags associated with the safety rule.
*/ inline CreateSafetyRuleRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The tags associated with the safety rule.
*/ inline CreateSafetyRuleRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: NewAssertionRule m_assertionRule; bool m_assertionRuleHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; NewGatingRule m_gatingRule; bool m_gatingRuleHasBeenSet = false; Aws::Map