/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include [Event-based policies only] Specifies an action for an event-based
* policy.See Also:
AWS API
* Reference
A descriptive name for the action.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *A descriptive name for the action.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *A descriptive name for the action.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *A descriptive name for the action.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *A descriptive name for the action.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *A descriptive name for the action.
*/ inline Action& WithName(const Aws::String& value) { SetName(value); return *this;} /** *A descriptive name for the action.
*/ inline Action& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *A descriptive name for the action.
*/ inline Action& WithName(const char* value) { SetName(value); return *this;} /** *The rule for copying shared snapshots across Regions.
*/ inline const Aws::VectorThe rule for copying shared snapshots across Regions.
*/ inline bool CrossRegionCopyHasBeenSet() const { return m_crossRegionCopyHasBeenSet; } /** *The rule for copying shared snapshots across Regions.
*/ inline void SetCrossRegionCopy(const Aws::VectorThe rule for copying shared snapshots across Regions.
*/ inline void SetCrossRegionCopy(Aws::VectorThe rule for copying shared snapshots across Regions.
*/ inline Action& WithCrossRegionCopy(const Aws::VectorThe rule for copying shared snapshots across Regions.
*/ inline Action& WithCrossRegionCopy(Aws::VectorThe rule for copying shared snapshots across Regions.
*/ inline Action& AddCrossRegionCopy(const CrossRegionCopyAction& value) { m_crossRegionCopyHasBeenSet = true; m_crossRegionCopy.push_back(value); return *this; } /** *The rule for copying shared snapshots across Regions.
*/ inline Action& AddCrossRegionCopy(CrossRegionCopyAction&& value) { m_crossRegionCopyHasBeenSet = true; m_crossRegionCopy.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector