Class: Aws::DirectoryServiceData::Types::AttributeValue
- Inherits:
-
Struct
- Object
- Struct
- Aws::DirectoryServiceData::Types::AttributeValue
- Defined in:
- gems/aws-sdk-directoryservicedata/lib/aws-sdk-directoryservicedata/types.rb
Overview
AttributeValue is a union - when making an API calls you must set exactly one of the members.
AttributeValue is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AttributeValue corresponding to the set member.
The data type for an attribute. Each attribute value is described as a name-value pair. The name is the AD schema name, and the value is the data itself. For a list of supported attributes, see Directory Service Data Attributes.
Defined Under Namespace
Classes: Bool, N, S, Ss, Unknown
Constant Summary collapse
- SENSITIVE =
[:bool, :n, :s, :ss]
Instance Attribute Summary collapse
-
#bool ⇒ Boolean
Indicates that the attribute type value is a boolean.
-
#n ⇒ Integer
Indicates that the attribute type value is a number.
-
#s ⇒ String
Indicates that the attribute type value is a string.
-
#ss ⇒ Array<String>
Indicates that the attribute type value is a string set.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#bool ⇒ Boolean
Indicates that the attribute type value is a boolean. For example:
"BOOL": true
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'gems/aws-sdk-directoryservicedata/lib/aws-sdk-directoryservicedata/types.rb', line 144 class AttributeValue < Struct.new( :bool, :n, :s, :ss, :unknown) SENSITIVE = [:bool, :n, :s, :ss] include Aws::Structure include Aws::Structure::Union class Bool < AttributeValue; end class N < AttributeValue; end class S < AttributeValue; end class Ss < AttributeValue; end class Unknown < AttributeValue; end end |
#n ⇒ Integer
Indicates that the attribute type value is a number. For example:
"N": "16"
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'gems/aws-sdk-directoryservicedata/lib/aws-sdk-directoryservicedata/types.rb', line 144 class AttributeValue < Struct.new( :bool, :n, :s, :ss, :unknown) SENSITIVE = [:bool, :n, :s, :ss] include Aws::Structure include Aws::Structure::Union class Bool < AttributeValue; end class N < AttributeValue; end class S < AttributeValue; end class Ss < AttributeValue; end class Unknown < AttributeValue; end end |
#s ⇒ String
Indicates that the attribute type value is a string. For example:
"S": "S Group"
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'gems/aws-sdk-directoryservicedata/lib/aws-sdk-directoryservicedata/types.rb', line 144 class AttributeValue < Struct.new( :bool, :n, :s, :ss, :unknown) SENSITIVE = [:bool, :n, :s, :ss] include Aws::Structure include Aws::Structure::Union class Bool < AttributeValue; end class N < AttributeValue; end class S < AttributeValue; end class Ss < AttributeValue; end class Unknown < AttributeValue; end end |
#ss ⇒ Array<String>
Indicates that the attribute type value is a string set. For example:
"SS":
["sample_service_class/host.sample.com:1234/sample_service_name_1",
"sample_service_class/host.sample.com:1234/sample_service_name_2"]
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'gems/aws-sdk-directoryservicedata/lib/aws-sdk-directoryservicedata/types.rb', line 144 class AttributeValue < Struct.new( :bool, :n, :s, :ss, :unknown) SENSITIVE = [:bool, :n, :s, :ss] include Aws::Structure include Aws::Structure::Union class Bool < AttributeValue; end class N < AttributeValue; end class S < AttributeValue; end class Ss < AttributeValue; end class Unknown < AttributeValue; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
144 145 146 |
# File 'gems/aws-sdk-directoryservicedata/lib/aws-sdk-directoryservicedata/types.rb', line 144 def unknown @unknown end |