/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

A structure for returning a resource policy.

See Also:

AWS API * Reference

*/ class GluePolicy { public: AWS_GLUE_API GluePolicy(); AWS_GLUE_API GluePolicy(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API GluePolicy& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Contains the requested policy document, in JSON format.

*/ inline const Aws::String& GetPolicyInJson() const{ return m_policyInJson; } /** *

Contains the requested policy document, in JSON format.

*/ inline bool PolicyInJsonHasBeenSet() const { return m_policyInJsonHasBeenSet; } /** *

Contains the requested policy document, in JSON format.

*/ inline void SetPolicyInJson(const Aws::String& value) { m_policyInJsonHasBeenSet = true; m_policyInJson = value; } /** *

Contains the requested policy document, in JSON format.

*/ inline void SetPolicyInJson(Aws::String&& value) { m_policyInJsonHasBeenSet = true; m_policyInJson = std::move(value); } /** *

Contains the requested policy document, in JSON format.

*/ inline void SetPolicyInJson(const char* value) { m_policyInJsonHasBeenSet = true; m_policyInJson.assign(value); } /** *

Contains the requested policy document, in JSON format.

*/ inline GluePolicy& WithPolicyInJson(const Aws::String& value) { SetPolicyInJson(value); return *this;} /** *

Contains the requested policy document, in JSON format.

*/ inline GluePolicy& WithPolicyInJson(Aws::String&& value) { SetPolicyInJson(std::move(value)); return *this;} /** *

Contains the requested policy document, in JSON format.

*/ inline GluePolicy& WithPolicyInJson(const char* value) { SetPolicyInJson(value); return *this;} /** *

Contains the hash value associated with this policy.

*/ inline const Aws::String& GetPolicyHash() const{ return m_policyHash; } /** *

Contains the hash value associated with this policy.

*/ inline bool PolicyHashHasBeenSet() const { return m_policyHashHasBeenSet; } /** *

Contains the hash value associated with this policy.

*/ inline void SetPolicyHash(const Aws::String& value) { m_policyHashHasBeenSet = true; m_policyHash = value; } /** *

Contains the hash value associated with this policy.

*/ inline void SetPolicyHash(Aws::String&& value) { m_policyHashHasBeenSet = true; m_policyHash = std::move(value); } /** *

Contains the hash value associated with this policy.

*/ inline void SetPolicyHash(const char* value) { m_policyHashHasBeenSet = true; m_policyHash.assign(value); } /** *

Contains the hash value associated with this policy.

*/ inline GluePolicy& WithPolicyHash(const Aws::String& value) { SetPolicyHash(value); return *this;} /** *

Contains the hash value associated with this policy.

*/ inline GluePolicy& WithPolicyHash(Aws::String&& value) { SetPolicyHash(std::move(value)); return *this;} /** *

Contains the hash value associated with this policy.

*/ inline GluePolicy& WithPolicyHash(const char* value) { SetPolicyHash(value); return *this;} /** *

The date and time at which the policy was created.

*/ inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } /** *

The date and time at which the policy was created.

*/ inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } /** *

The date and time at which the policy was created.

*/ inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; } /** *

The date and time at which the policy was created.

*/ inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); } /** *

The date and time at which the policy was created.

*/ inline GluePolicy& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *

The date and time at which the policy was created.

*/ inline GluePolicy& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} /** *

The date and time at which the policy was last updated.

*/ inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; } /** *

The date and time at which the policy was last updated.

*/ inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; } /** *

The date and time at which the policy was last updated.

*/ inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; } /** *

The date and time at which the policy was last updated.

*/ inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); } /** *

The date and time at which the policy was last updated.

*/ inline GluePolicy& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;} /** *

The date and time at which the policy was last updated.

*/ inline GluePolicy& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;} private: Aws::String m_policyInJson; bool m_policyInJsonHasBeenSet = false; Aws::String m_policyHash; bool m_policyHashHasBeenSet = false; Aws::Utils::DateTime m_createTime; bool m_createTimeHasBeenSet = false; Aws::Utils::DateTime m_updateTime; bool m_updateTimeHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws