/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace Redshift { namespace Model { /** *

Describes the operations that are allowed on a maintenance * track.

See Also:

AWS * API Reference

*/ class SupportedOperation { public: AWS_REDSHIFT_API SupportedOperation(); AWS_REDSHIFT_API SupportedOperation(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_REDSHIFT_API SupportedOperation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

A list of the supported operations.

*/ inline const Aws::String& GetOperationName() const{ return m_operationName; } /** *

A list of the supported operations.

*/ inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; } /** *

A list of the supported operations.

*/ inline void SetOperationName(const Aws::String& value) { m_operationNameHasBeenSet = true; m_operationName = value; } /** *

A list of the supported operations.

*/ inline void SetOperationName(Aws::String&& value) { m_operationNameHasBeenSet = true; m_operationName = std::move(value); } /** *

A list of the supported operations.

*/ inline void SetOperationName(const char* value) { m_operationNameHasBeenSet = true; m_operationName.assign(value); } /** *

A list of the supported operations.

*/ inline SupportedOperation& WithOperationName(const Aws::String& value) { SetOperationName(value); return *this;} /** *

A list of the supported operations.

*/ inline SupportedOperation& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;} /** *

A list of the supported operations.

*/ inline SupportedOperation& WithOperationName(const char* value) { SetOperationName(value); return *this;} private: Aws::String m_operationName; bool m_operationNameHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws