This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-fms/include/aws/fms/model/PutPolicyResult.h

107 lines
2.8 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/fms/FMS_EXPORTS.h>
#include <aws/fms/model/Policy.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace FMS
{
namespace Model
{
class AWS_FMS_API PutPolicyResult
{
public:
PutPolicyResult();
PutPolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
PutPolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The details of the AWS Firewall Manager policy.</p>
*/
inline const Policy& GetPolicy() const{ return m_policy; }
/**
* <p>The details of the AWS Firewall Manager policy.</p>
*/
inline void SetPolicy(const Policy& value) { m_policy = value; }
/**
* <p>The details of the AWS Firewall Manager policy.</p>
*/
inline void SetPolicy(Policy&& value) { m_policy = std::move(value); }
/**
* <p>The details of the AWS Firewall Manager policy.</p>
*/
inline PutPolicyResult& WithPolicy(const Policy& value) { SetPolicy(value); return *this;}
/**
* <p>The details of the AWS Firewall Manager policy.</p>
*/
inline PutPolicyResult& WithPolicy(Policy&& value) { SetPolicy(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the policy.</p>
*/
inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
/**
* <p>The Amazon Resource Name (ARN) of the policy.</p>
*/
inline void SetPolicyArn(const Aws::String& value) { m_policyArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the policy.</p>
*/
inline void SetPolicyArn(Aws::String&& value) { m_policyArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the policy.</p>
*/
inline void SetPolicyArn(const char* value) { m_policyArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the policy.</p>
*/
inline PutPolicyResult& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the policy.</p>
*/
inline PutPolicyResult& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the policy.</p>
*/
inline PutPolicyResult& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
private:
Policy m_policy;
Aws::String m_policyArn;
};
} // namespace Model
} // namespace FMS
} // namespace Aws