268 lines
11 KiB
C++
268 lines
11 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
|
|
#include <aws/iotsitewise/IoTSiteWiseRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/iotsitewise/model/Identity.h>
|
|
#include <aws/iotsitewise/model/Resource.h>
|
|
#include <aws/iotsitewise/model/Permission.h>
|
|
#include <utility>
|
|
#include <aws/core/utils/UUID.h>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace IoTSiteWise
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_IOTSITEWISE_API UpdateAccessPolicyRequest : public IoTSiteWiseRequest
|
|
{
|
|
public:
|
|
UpdateAccessPolicyRequest();
|
|
|
|
// Service request name is the Operation name which will send this request out,
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|
// so we can not get operation's name from response.
|
|
inline virtual const char* GetServiceRequestName() const override { return "UpdateAccessPolicy"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>The ID of the access policy.</p>
|
|
*/
|
|
inline const Aws::String& GetAccessPolicyId() const{ return m_accessPolicyId; }
|
|
|
|
/**
|
|
* <p>The ID of the access policy.</p>
|
|
*/
|
|
inline bool AccessPolicyIdHasBeenSet() const { return m_accessPolicyIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the access policy.</p>
|
|
*/
|
|
inline void SetAccessPolicyId(const Aws::String& value) { m_accessPolicyIdHasBeenSet = true; m_accessPolicyId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the access policy.</p>
|
|
*/
|
|
inline void SetAccessPolicyId(Aws::String&& value) { m_accessPolicyIdHasBeenSet = true; m_accessPolicyId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the access policy.</p>
|
|
*/
|
|
inline void SetAccessPolicyId(const char* value) { m_accessPolicyIdHasBeenSet = true; m_accessPolicyId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the access policy.</p>
|
|
*/
|
|
inline UpdateAccessPolicyRequest& WithAccessPolicyId(const Aws::String& value) { SetAccessPolicyId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the access policy.</p>
|
|
*/
|
|
inline UpdateAccessPolicyRequest& WithAccessPolicyId(Aws::String&& value) { SetAccessPolicyId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the access policy.</p>
|
|
*/
|
|
inline UpdateAccessPolicyRequest& WithAccessPolicyId(const char* value) { SetAccessPolicyId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The identity for this access policy. Choose either a <code>user</code> or a
|
|
* <code>group</code> but not both.</p>
|
|
*/
|
|
inline const Identity& GetAccessPolicyIdentity() const{ return m_accessPolicyIdentity; }
|
|
|
|
/**
|
|
* <p>The identity for this access policy. Choose either a <code>user</code> or a
|
|
* <code>group</code> but not both.</p>
|
|
*/
|
|
inline bool AccessPolicyIdentityHasBeenSet() const { return m_accessPolicyIdentityHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The identity for this access policy. Choose either a <code>user</code> or a
|
|
* <code>group</code> but not both.</p>
|
|
*/
|
|
inline void SetAccessPolicyIdentity(const Identity& value) { m_accessPolicyIdentityHasBeenSet = true; m_accessPolicyIdentity = value; }
|
|
|
|
/**
|
|
* <p>The identity for this access policy. Choose either a <code>user</code> or a
|
|
* <code>group</code> but not both.</p>
|
|
*/
|
|
inline void SetAccessPolicyIdentity(Identity&& value) { m_accessPolicyIdentityHasBeenSet = true; m_accessPolicyIdentity = std::move(value); }
|
|
|
|
/**
|
|
* <p>The identity for this access policy. Choose either a <code>user</code> or a
|
|
* <code>group</code> but not both.</p>
|
|
*/
|
|
inline UpdateAccessPolicyRequest& WithAccessPolicyIdentity(const Identity& value) { SetAccessPolicyIdentity(value); return *this;}
|
|
|
|
/**
|
|
* <p>The identity for this access policy. Choose either a <code>user</code> or a
|
|
* <code>group</code> but not both.</p>
|
|
*/
|
|
inline UpdateAccessPolicyRequest& WithAccessPolicyIdentity(Identity&& value) { SetAccessPolicyIdentity(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The AWS IoT SiteWise Monitor resource for this access policy. Choose either
|
|
* <code>portal</code> or <code>project</code> but not both.</p>
|
|
*/
|
|
inline const Resource& GetAccessPolicyResource() const{ return m_accessPolicyResource; }
|
|
|
|
/**
|
|
* <p>The AWS IoT SiteWise Monitor resource for this access policy. Choose either
|
|
* <code>portal</code> or <code>project</code> but not both.</p>
|
|
*/
|
|
inline bool AccessPolicyResourceHasBeenSet() const { return m_accessPolicyResourceHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The AWS IoT SiteWise Monitor resource for this access policy. Choose either
|
|
* <code>portal</code> or <code>project</code> but not both.</p>
|
|
*/
|
|
inline void SetAccessPolicyResource(const Resource& value) { m_accessPolicyResourceHasBeenSet = true; m_accessPolicyResource = value; }
|
|
|
|
/**
|
|
* <p>The AWS IoT SiteWise Monitor resource for this access policy. Choose either
|
|
* <code>portal</code> or <code>project</code> but not both.</p>
|
|
*/
|
|
inline void SetAccessPolicyResource(Resource&& value) { m_accessPolicyResourceHasBeenSet = true; m_accessPolicyResource = std::move(value); }
|
|
|
|
/**
|
|
* <p>The AWS IoT SiteWise Monitor resource for this access policy. Choose either
|
|
* <code>portal</code> or <code>project</code> but not both.</p>
|
|
*/
|
|
inline UpdateAccessPolicyRequest& WithAccessPolicyResource(const Resource& value) { SetAccessPolicyResource(value); return *this;}
|
|
|
|
/**
|
|
* <p>The AWS IoT SiteWise Monitor resource for this access policy. Choose either
|
|
* <code>portal</code> or <code>project</code> but not both.</p>
|
|
*/
|
|
inline UpdateAccessPolicyRequest& WithAccessPolicyResource(Resource&& value) { SetAccessPolicyResource(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The permission level for this access policy. Note that a project
|
|
* <code>ADMINISTRATOR</code> is also known as a project owner.</p>
|
|
*/
|
|
inline const Permission& GetAccessPolicyPermission() const{ return m_accessPolicyPermission; }
|
|
|
|
/**
|
|
* <p>The permission level for this access policy. Note that a project
|
|
* <code>ADMINISTRATOR</code> is also known as a project owner.</p>
|
|
*/
|
|
inline bool AccessPolicyPermissionHasBeenSet() const { return m_accessPolicyPermissionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The permission level for this access policy. Note that a project
|
|
* <code>ADMINISTRATOR</code> is also known as a project owner.</p>
|
|
*/
|
|
inline void SetAccessPolicyPermission(const Permission& value) { m_accessPolicyPermissionHasBeenSet = true; m_accessPolicyPermission = value; }
|
|
|
|
/**
|
|
* <p>The permission level for this access policy. Note that a project
|
|
* <code>ADMINISTRATOR</code> is also known as a project owner.</p>
|
|
*/
|
|
inline void SetAccessPolicyPermission(Permission&& value) { m_accessPolicyPermissionHasBeenSet = true; m_accessPolicyPermission = std::move(value); }
|
|
|
|
/**
|
|
* <p>The permission level for this access policy. Note that a project
|
|
* <code>ADMINISTRATOR</code> is also known as a project owner.</p>
|
|
*/
|
|
inline UpdateAccessPolicyRequest& WithAccessPolicyPermission(const Permission& value) { SetAccessPolicyPermission(value); return *this;}
|
|
|
|
/**
|
|
* <p>The permission level for this access policy. Note that a project
|
|
* <code>ADMINISTRATOR</code> is also known as a project owner.</p>
|
|
*/
|
|
inline UpdateAccessPolicyRequest& WithAccessPolicyPermission(Permission&& value) { SetAccessPolicyPermission(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A unique case-sensitive identifier that you can provide to ensure the
|
|
* idempotency of the request. Don't reuse this client token if a new idempotent
|
|
* request is required.</p>
|
|
*/
|
|
inline const Aws::String& GetClientToken() const{ return m_clientToken; }
|
|
|
|
/**
|
|
* <p>A unique case-sensitive identifier that you can provide to ensure the
|
|
* idempotency of the request. Don't reuse this client token if a new idempotent
|
|
* request is required.</p>
|
|
*/
|
|
inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A unique case-sensitive identifier that you can provide to ensure the
|
|
* idempotency of the request. Don't reuse this client token if a new idempotent
|
|
* request is required.</p>
|
|
*/
|
|
inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
|
|
|
|
/**
|
|
* <p>A unique case-sensitive identifier that you can provide to ensure the
|
|
* idempotency of the request. Don't reuse this client token if a new idempotent
|
|
* request is required.</p>
|
|
*/
|
|
inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
|
|
|
|
/**
|
|
* <p>A unique case-sensitive identifier that you can provide to ensure the
|
|
* idempotency of the request. Don't reuse this client token if a new idempotent
|
|
* request is required.</p>
|
|
*/
|
|
inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
|
|
|
|
/**
|
|
* <p>A unique case-sensitive identifier that you can provide to ensure the
|
|
* idempotency of the request. Don't reuse this client token if a new idempotent
|
|
* request is required.</p>
|
|
*/
|
|
inline UpdateAccessPolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
|
|
|
|
/**
|
|
* <p>A unique case-sensitive identifier that you can provide to ensure the
|
|
* idempotency of the request. Don't reuse this client token if a new idempotent
|
|
* request is required.</p>
|
|
*/
|
|
inline UpdateAccessPolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A unique case-sensitive identifier that you can provide to ensure the
|
|
* idempotency of the request. Don't reuse this client token if a new idempotent
|
|
* request is required.</p>
|
|
*/
|
|
inline UpdateAccessPolicyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_accessPolicyId;
|
|
bool m_accessPolicyIdHasBeenSet;
|
|
|
|
Identity m_accessPolicyIdentity;
|
|
bool m_accessPolicyIdentityHasBeenSet;
|
|
|
|
Resource m_accessPolicyResource;
|
|
bool m_accessPolicyResourceHasBeenSet;
|
|
|
|
Permission m_accessPolicyPermission;
|
|
bool m_accessPolicyPermissionHasBeenSet;
|
|
|
|
Aws::String m_clientToken;
|
|
bool m_clientTokenHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace IoTSiteWise
|
|
} // namespace Aws
|