/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace SSM { namespace Model { /** */ class StartAssociationsOnceRequest : public SSMRequest { public: AWS_SSM_API StartAssociationsOnceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartAssociationsOnce"; } AWS_SSM_API Aws::String SerializePayload() const override; AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The association IDs that you want to run immediately and only one time.

*/ inline const Aws::Vector& GetAssociationIds() const{ return m_associationIds; } /** *

The association IDs that you want to run immediately and only one time.

*/ inline bool AssociationIdsHasBeenSet() const { return m_associationIdsHasBeenSet; } /** *

The association IDs that you want to run immediately and only one time.

*/ inline void SetAssociationIds(const Aws::Vector& value) { m_associationIdsHasBeenSet = true; m_associationIds = value; } /** *

The association IDs that you want to run immediately and only one time.

*/ inline void SetAssociationIds(Aws::Vector&& value) { m_associationIdsHasBeenSet = true; m_associationIds = std::move(value); } /** *

The association IDs that you want to run immediately and only one time.

*/ inline StartAssociationsOnceRequest& WithAssociationIds(const Aws::Vector& value) { SetAssociationIds(value); return *this;} /** *

The association IDs that you want to run immediately and only one time.

*/ inline StartAssociationsOnceRequest& WithAssociationIds(Aws::Vector&& value) { SetAssociationIds(std::move(value)); return *this;} /** *

The association IDs that you want to run immediately and only one time.

*/ inline StartAssociationsOnceRequest& AddAssociationIds(const Aws::String& value) { m_associationIdsHasBeenSet = true; m_associationIds.push_back(value); return *this; } /** *

The association IDs that you want to run immediately and only one time.

*/ inline StartAssociationsOnceRequest& AddAssociationIds(Aws::String&& value) { m_associationIdsHasBeenSet = true; m_associationIds.push_back(std::move(value)); return *this; } /** *

The association IDs that you want to run immediately and only one time.

*/ inline StartAssociationsOnceRequest& AddAssociationIds(const char* value) { m_associationIdsHasBeenSet = true; m_associationIds.push_back(value); return *this; } private: Aws::Vector m_associationIds; bool m_associationIdsHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws