/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A regular expression representing a restriction on a string configuration
* option value.See Also:
AWS
* API Reference
The regular expression pattern that a string configuration option value with * this restriction must match.
*/ inline const Aws::String& GetPattern() const{ return m_pattern; } /** *The regular expression pattern that a string configuration option value with * this restriction must match.
*/ inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; } /** *The regular expression pattern that a string configuration option value with * this restriction must match.
*/ inline void SetPattern(const Aws::String& value) { m_patternHasBeenSet = true; m_pattern = value; } /** *The regular expression pattern that a string configuration option value with * this restriction must match.
*/ inline void SetPattern(Aws::String&& value) { m_patternHasBeenSet = true; m_pattern = std::move(value); } /** *The regular expression pattern that a string configuration option value with * this restriction must match.
*/ inline void SetPattern(const char* value) { m_patternHasBeenSet = true; m_pattern.assign(value); } /** *The regular expression pattern that a string configuration option value with * this restriction must match.
*/ inline OptionRestrictionRegex& WithPattern(const Aws::String& value) { SetPattern(value); return *this;} /** *The regular expression pattern that a string configuration option value with * this restriction must match.
*/ inline OptionRestrictionRegex& WithPattern(Aws::String&& value) { SetPattern(std::move(value)); return *this;} /** *The regular expression pattern that a string configuration option value with * this restriction must match.
*/ inline OptionRestrictionRegex& WithPattern(const char* value) { SetPattern(value); return *this;} /** *A unique name representing this regular expression.
*/ inline const Aws::String& GetLabel() const{ return m_label; } /** *A unique name representing this regular expression.
*/ inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; } /** *A unique name representing this regular expression.
*/ inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; } /** *A unique name representing this regular expression.
*/ inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); } /** *A unique name representing this regular expression.
*/ inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); } /** *A unique name representing this regular expression.
*/ inline OptionRestrictionRegex& WithLabel(const Aws::String& value) { SetLabel(value); return *this;} /** *A unique name representing this regular expression.
*/ inline OptionRestrictionRegex& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;} /** *A unique name representing this regular expression.
*/ inline OptionRestrictionRegex& WithLabel(const char* value) { SetLabel(value); return *this;} private: Aws::String m_pattern; bool m_patternHasBeenSet = false; Aws::String m_label; bool m_labelHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws