/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the verifiedpermissions-2021-12-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.VerifiedPermissions.Model
{
///
/// The value of an attribute.
///
///
///
/// Contains information about the runtime context for a request for which an authorization
/// decision is made.
///
///
///
/// This data type is used as a member of the ContextDefinition
/// structure which is uses as a request parameter for the IsAuthorized
/// and IsAuthorizedWithToken
/// operations.
///
///
public partial class AttributeValue
{
private bool? _boolean;
private EntityIdentifier _entityIdentifier;
private long? _long;
private Dictionary _record = new Dictionary();
private List _set = new List();
private string _string;
///
/// Gets and sets the property Boolean.
///
/// An attribute value of Boolean
/// type.
///
///
///
/// Example: {"boolean": true}
///
///
public bool Boolean
{
get { return this._boolean.GetValueOrDefault(); }
set { this._boolean = value; }
}
// Check to see if Boolean property is set
internal bool IsSetBoolean()
{
return this._boolean.HasValue;
}
///
/// Gets and sets the property EntityIdentifier.
///
/// An attribute value of type EntityIdentifier.
///
///
///
/// Example: "entityIdentifier": { "entityId": "<id>", "entityType": "<entity
/// type>"}
///
///
public EntityIdentifier EntityIdentifier
{
get { return this._entityIdentifier; }
set { this._entityIdentifier = value; }
}
// Check to see if EntityIdentifier property is set
internal bool IsSetEntityIdentifier()
{
return this._entityIdentifier != null;
}
///
/// Gets and sets the property Long.
///
/// An attribute value of Long
/// type.
///
///
///
/// Example: {"long": 0}
///
///
public long Long
{
get { return this._long.GetValueOrDefault(); }
set { this._long = value; }
}
// Check to see if Long property is set
internal bool IsSetLong()
{
return this._long.HasValue;
}
///
/// Gets and sets the property Record.
///
/// An attribute value of Record
/// type.
///
///
///
/// Example: {"record": { "keyName": {} } }
///
///
public Dictionary Record
{
get { return this._record; }
set { this._record = value; }
}
// Check to see if Record property is set
internal bool IsSetRecord()
{
return this._record != null && this._record.Count > 0;
}
///
/// Gets and sets the property Set.
///
/// An attribute value of Set
/// type.
///
///
///
/// Example: {"set": [ {} ] }
///
///
public List Set
{
get { return this._set; }
set { this._set = value; }
}
// Check to see if Set property is set
internal bool IsSetSet()
{
return this._set != null && this._set.Count > 0;
}
///
/// Gets and sets the property String.
///
/// An attribute value of String
/// type.
///
///
///
/// Example: {"string": "abc"}
///
///
public string String
{
get { return this._string; }
set { this._string = value; }
}
// Check to see if String property is set
internal bool IsSetString()
{
return this._string != null;
}
}
}