/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include You specify each grantee as a type-value pair using one of these types. You
* can specify only one type of grantee. For more information, see PutBucketAcl.See
* Also:
AWS
* API Reference
The value specified is the canonical user ID of an Amazon Web Services * account.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The value specified is the canonical user ID of an Amazon Web Services * account.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The value specified is the canonical user ID of an Amazon Web Services * account.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The value specified is the canonical user ID of an Amazon Web Services * account.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The value specified is the canonical user ID of an Amazon Web Services * account.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The value specified is the canonical user ID of an Amazon Web Services * account.
*/ inline AclGrantee& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The value specified is the canonical user ID of an Amazon Web Services * account.
*/ inline AclGrantee& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The value specified is the canonical user ID of an Amazon Web Services * account.
*/ inline AclGrantee& WithId(const char* value) { SetId(value); return *this;} /** *Used for granting permissions to a predefined group.
*/ inline const Aws::String& GetUri() const{ return m_uri; } /** *Used for granting permissions to a predefined group.
*/ inline bool UriHasBeenSet() const { return m_uriHasBeenSet; } /** *Used for granting permissions to a predefined group.
*/ inline void SetUri(const Aws::String& value) { m_uriHasBeenSet = true; m_uri = value; } /** *Used for granting permissions to a predefined group.
*/ inline void SetUri(Aws::String&& value) { m_uriHasBeenSet = true; m_uri = std::move(value); } /** *Used for granting permissions to a predefined group.
*/ inline void SetUri(const char* value) { m_uriHasBeenSet = true; m_uri.assign(value); } /** *Used for granting permissions to a predefined group.
*/ inline AclGrantee& WithUri(const Aws::String& value) { SetUri(value); return *this;} /** *Used for granting permissions to a predefined group.
*/ inline AclGrantee& WithUri(Aws::String&& value) { SetUri(std::move(value)); return *this;} /** *Used for granting permissions to a predefined group.
*/ inline AclGrantee& WithUri(const char* value) { SetUri(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_uri; bool m_uriHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws