/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ResilienceHub { namespace Model { class UpdateResiliencyPolicyResult { public: AWS_RESILIENCEHUB_API UpdateResiliencyPolicyResult(); AWS_RESILIENCEHUB_API UpdateResiliencyPolicyResult(const Aws::AmazonWebServiceResult& result); AWS_RESILIENCEHUB_API UpdateResiliencyPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The type of resiliency policy that was updated, including the recovery time * objective (RTO) and recovery point objective (RPO) in seconds.

*/ inline const ResiliencyPolicy& GetPolicy() const{ return m_policy; } /** *

The type of resiliency policy that was updated, including the recovery time * objective (RTO) and recovery point objective (RPO) in seconds.

*/ inline void SetPolicy(const ResiliencyPolicy& value) { m_policy = value; } /** *

The type of resiliency policy that was updated, including the recovery time * objective (RTO) and recovery point objective (RPO) in seconds.

*/ inline void SetPolicy(ResiliencyPolicy&& value) { m_policy = std::move(value); } /** *

The type of resiliency policy that was updated, including the recovery time * objective (RTO) and recovery point objective (RPO) in seconds.

*/ inline UpdateResiliencyPolicyResult& WithPolicy(const ResiliencyPolicy& value) { SetPolicy(value); return *this;} /** *

The type of resiliency policy that was updated, including the recovery time * objective (RTO) and recovery point objective (RPO) in seconds.

*/ inline UpdateResiliencyPolicyResult& WithPolicy(ResiliencyPolicy&& value) { SetPolicy(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline UpdateResiliencyPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateResiliencyPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateResiliencyPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ResiliencyPolicy m_policy; Aws::String m_requestId; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws