/** * 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 GetDeployablePatchSnapshotForInstanceRequest : public SSMRequest { public: AWS_SSM_API GetDeployablePatchSnapshotForInstanceRequest(); // 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 "GetDeployablePatchSnapshotForInstance"; } AWS_SSM_API Aws::String SerializePayload() const override; AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the managed node for which the appropriate patch snapshot should be * retrieved.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The ID of the managed node for which the appropriate patch snapshot should be * retrieved.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The ID of the managed node for which the appropriate patch snapshot should be * retrieved.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The ID of the managed node for which the appropriate patch snapshot should be * retrieved.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The ID of the managed node for which the appropriate patch snapshot should be * retrieved.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The ID of the managed node for which the appropriate patch snapshot should be * retrieved.

*/ inline GetDeployablePatchSnapshotForInstanceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The ID of the managed node for which the appropriate patch snapshot should be * retrieved.

*/ inline GetDeployablePatchSnapshotForInstanceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The ID of the managed node for which the appropriate patch snapshot should be * retrieved.

*/ inline GetDeployablePatchSnapshotForInstanceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The snapshot ID provided by the user when running * AWS-RunPatchBaseline.

*/ inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } /** *

The snapshot ID provided by the user when running * AWS-RunPatchBaseline.

*/ inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; } /** *

The snapshot ID provided by the user when running * AWS-RunPatchBaseline.

*/ inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; } /** *

The snapshot ID provided by the user when running * AWS-RunPatchBaseline.

*/ inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); } /** *

The snapshot ID provided by the user when running * AWS-RunPatchBaseline.

*/ inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); } /** *

The snapshot ID provided by the user when running * AWS-RunPatchBaseline.

*/ inline GetDeployablePatchSnapshotForInstanceRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *

The snapshot ID provided by the user when running * AWS-RunPatchBaseline.

*/ inline GetDeployablePatchSnapshotForInstanceRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} /** *

The snapshot ID provided by the user when running * AWS-RunPatchBaseline.

*/ inline GetDeployablePatchSnapshotForInstanceRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} /** *

Defines the basic information about a patch baseline override.

*/ inline const BaselineOverride& GetBaselineOverride() const{ return m_baselineOverride; } /** *

Defines the basic information about a patch baseline override.

*/ inline bool BaselineOverrideHasBeenSet() const { return m_baselineOverrideHasBeenSet; } /** *

Defines the basic information about a patch baseline override.

*/ inline void SetBaselineOverride(const BaselineOverride& value) { m_baselineOverrideHasBeenSet = true; m_baselineOverride = value; } /** *

Defines the basic information about a patch baseline override.

*/ inline void SetBaselineOverride(BaselineOverride&& value) { m_baselineOverrideHasBeenSet = true; m_baselineOverride = std::move(value); } /** *

Defines the basic information about a patch baseline override.

*/ inline GetDeployablePatchSnapshotForInstanceRequest& WithBaselineOverride(const BaselineOverride& value) { SetBaselineOverride(value); return *this;} /** *

Defines the basic information about a patch baseline override.

*/ inline GetDeployablePatchSnapshotForInstanceRequest& WithBaselineOverride(BaselineOverride&& value) { SetBaselineOverride(std::move(value)); return *this;} private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_snapshotId; bool m_snapshotIdHasBeenSet = false; BaselineOverride m_baselineOverride; bool m_baselineOverrideHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws