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

Details of a resource that is associated to an Firewall Manager resource * set.

See Also:

AWS API * Reference

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

The resource's universal resource indicator (URI).

*/ inline const Aws::String& GetURI() const{ return m_uRI; } /** *

The resource's universal resource indicator (URI).

*/ inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; } /** *

The resource's universal resource indicator (URI).

*/ inline void SetURI(const Aws::String& value) { m_uRIHasBeenSet = true; m_uRI = value; } /** *

The resource's universal resource indicator (URI).

*/ inline void SetURI(Aws::String&& value) { m_uRIHasBeenSet = true; m_uRI = std::move(value); } /** *

The resource's universal resource indicator (URI).

*/ inline void SetURI(const char* value) { m_uRIHasBeenSet = true; m_uRI.assign(value); } /** *

The resource's universal resource indicator (URI).

*/ inline Resource& WithURI(const Aws::String& value) { SetURI(value); return *this;} /** *

The resource's universal resource indicator (URI).

*/ inline Resource& WithURI(Aws::String&& value) { SetURI(std::move(value)); return *this;} /** *

The resource's universal resource indicator (URI).

*/ inline Resource& WithURI(const char* value) { SetURI(value); return *this;} /** *

The Amazon Web Services account ID that the associated resource belongs * to.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The Amazon Web Services account ID that the associated resource belongs * to.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The Amazon Web Services account ID that the associated resource belongs * to.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The Amazon Web Services account ID that the associated resource belongs * to.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The Amazon Web Services account ID that the associated resource belongs * to.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The Amazon Web Services account ID that the associated resource belongs * to.

*/ inline Resource& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The Amazon Web Services account ID that the associated resource belongs * to.

*/ inline Resource& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID that the associated resource belongs * to.

*/ inline Resource& WithAccountId(const char* value) { SetAccountId(value); return *this;} private: Aws::String m_uRI; bool m_uRIHasBeenSet = false; Aws::String m_accountId; bool m_accountIdHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws