/** * 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 IoTSiteWise { namespace Model { class CreatePortalResult { public: AWS_IOTSITEWISE_API CreatePortalResult(); AWS_IOTSITEWISE_API CreatePortalResult(const Aws::AmazonWebServiceResult& result); AWS_IOTSITEWISE_API CreatePortalResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the created portal.

*/ inline const Aws::String& GetPortalId() const{ return m_portalId; } /** *

The ID of the created portal.

*/ inline void SetPortalId(const Aws::String& value) { m_portalId = value; } /** *

The ID of the created portal.

*/ inline void SetPortalId(Aws::String&& value) { m_portalId = std::move(value); } /** *

The ID of the created portal.

*/ inline void SetPortalId(const char* value) { m_portalId.assign(value); } /** *

The ID of the created portal.

*/ inline CreatePortalResult& WithPortalId(const Aws::String& value) { SetPortalId(value); return *this;} /** *

The ID of the created portal.

*/ inline CreatePortalResult& WithPortalId(Aws::String&& value) { SetPortalId(std::move(value)); return *this;} /** *

The ID of the created portal.

*/ inline CreatePortalResult& WithPortalId(const char* value) { SetPortalId(value); return *this;} /** *

The ARN * of the portal, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:portal/${PortalId} *

*/ inline const Aws::String& GetPortalArn() const{ return m_portalArn; } /** *

The ARN * of the portal, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:portal/${PortalId} *

*/ inline void SetPortalArn(const Aws::String& value) { m_portalArn = value; } /** *

The ARN * of the portal, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:portal/${PortalId} *

*/ inline void SetPortalArn(Aws::String&& value) { m_portalArn = std::move(value); } /** *

The ARN * of the portal, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:portal/${PortalId} *

*/ inline void SetPortalArn(const char* value) { m_portalArn.assign(value); } /** *

The ARN * of the portal, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:portal/${PortalId} *

*/ inline CreatePortalResult& WithPortalArn(const Aws::String& value) { SetPortalArn(value); return *this;} /** *

The ARN * of the portal, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:portal/${PortalId} *

*/ inline CreatePortalResult& WithPortalArn(Aws::String&& value) { SetPortalArn(std::move(value)); return *this;} /** *

The ARN * of the portal, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:portal/${PortalId} *

*/ inline CreatePortalResult& WithPortalArn(const char* value) { SetPortalArn(value); return *this;} /** *

The URL for the IoT SiteWise Monitor portal. You can use this URL to access * portals that use IAM Identity Center for authentication. For portals that use * IAM for authentication, you must use the IoT SiteWise console to get a URL that * you can use to access the portal.

*/ inline const Aws::String& GetPortalStartUrl() const{ return m_portalStartUrl; } /** *

The URL for the IoT SiteWise Monitor portal. You can use this URL to access * portals that use IAM Identity Center for authentication. For portals that use * IAM for authentication, you must use the IoT SiteWise console to get a URL that * you can use to access the portal.

*/ inline void SetPortalStartUrl(const Aws::String& value) { m_portalStartUrl = value; } /** *

The URL for the IoT SiteWise Monitor portal. You can use this URL to access * portals that use IAM Identity Center for authentication. For portals that use * IAM for authentication, you must use the IoT SiteWise console to get a URL that * you can use to access the portal.

*/ inline void SetPortalStartUrl(Aws::String&& value) { m_portalStartUrl = std::move(value); } /** *

The URL for the IoT SiteWise Monitor portal. You can use this URL to access * portals that use IAM Identity Center for authentication. For portals that use * IAM for authentication, you must use the IoT SiteWise console to get a URL that * you can use to access the portal.

*/ inline void SetPortalStartUrl(const char* value) { m_portalStartUrl.assign(value); } /** *

The URL for the IoT SiteWise Monitor portal. You can use this URL to access * portals that use IAM Identity Center for authentication. For portals that use * IAM for authentication, you must use the IoT SiteWise console to get a URL that * you can use to access the portal.

*/ inline CreatePortalResult& WithPortalStartUrl(const Aws::String& value) { SetPortalStartUrl(value); return *this;} /** *

The URL for the IoT SiteWise Monitor portal. You can use this URL to access * portals that use IAM Identity Center for authentication. For portals that use * IAM for authentication, you must use the IoT SiteWise console to get a URL that * you can use to access the portal.

*/ inline CreatePortalResult& WithPortalStartUrl(Aws::String&& value) { SetPortalStartUrl(std::move(value)); return *this;} /** *

The URL for the IoT SiteWise Monitor portal. You can use this URL to access * portals that use IAM Identity Center for authentication. For portals that use * IAM for authentication, you must use the IoT SiteWise console to get a URL that * you can use to access the portal.

*/ inline CreatePortalResult& WithPortalStartUrl(const char* value) { SetPortalStartUrl(value); return *this;} /** *

The status of the portal, which contains a state (CREATING after * successfully calling this operation) and any error message.

*/ inline const PortalStatus& GetPortalStatus() const{ return m_portalStatus; } /** *

The status of the portal, which contains a state (CREATING after * successfully calling this operation) and any error message.

*/ inline void SetPortalStatus(const PortalStatus& value) { m_portalStatus = value; } /** *

The status of the portal, which contains a state (CREATING after * successfully calling this operation) and any error message.

*/ inline void SetPortalStatus(PortalStatus&& value) { m_portalStatus = std::move(value); } /** *

The status of the portal, which contains a state (CREATING after * successfully calling this operation) and any error message.

*/ inline CreatePortalResult& WithPortalStatus(const PortalStatus& value) { SetPortalStatus(value); return *this;} /** *

The status of the portal, which contains a state (CREATING after * successfully calling this operation) and any error message.

*/ inline CreatePortalResult& WithPortalStatus(PortalStatus&& value) { SetPortalStatus(std::move(value)); return *this;} /** *

The associated IAM Identity Center application ID, if the portal uses IAM * Identity Center.

*/ inline const Aws::String& GetSsoApplicationId() const{ return m_ssoApplicationId; } /** *

The associated IAM Identity Center application ID, if the portal uses IAM * Identity Center.

*/ inline void SetSsoApplicationId(const Aws::String& value) { m_ssoApplicationId = value; } /** *

The associated IAM Identity Center application ID, if the portal uses IAM * Identity Center.

*/ inline void SetSsoApplicationId(Aws::String&& value) { m_ssoApplicationId = std::move(value); } /** *

The associated IAM Identity Center application ID, if the portal uses IAM * Identity Center.

*/ inline void SetSsoApplicationId(const char* value) { m_ssoApplicationId.assign(value); } /** *

The associated IAM Identity Center application ID, if the portal uses IAM * Identity Center.

*/ inline CreatePortalResult& WithSsoApplicationId(const Aws::String& value) { SetSsoApplicationId(value); return *this;} /** *

The associated IAM Identity Center application ID, if the portal uses IAM * Identity Center.

*/ inline CreatePortalResult& WithSsoApplicationId(Aws::String&& value) { SetSsoApplicationId(std::move(value)); return *this;} /** *

The associated IAM Identity Center application ID, if the portal uses IAM * Identity Center.

*/ inline CreatePortalResult& WithSsoApplicationId(const char* value) { SetSsoApplicationId(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 CreatePortalResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreatePortalResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreatePortalResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_portalId; Aws::String m_portalArn; Aws::String m_portalStartUrl; PortalStatus m_portalStatus; Aws::String m_ssoApplicationId; Aws::String m_requestId; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws