Class PropertyValue
Inheritance
PropertyValue
Assembly: Pulumi.dll
Syntax
public sealed class PropertyValue : IEquatable<PropertyValue>
Constructors
View Source
PropertyValue(Archive)
Declaration
public PropertyValue(Archive value)
Parameters
| Type |
Name |
Description |
| Archive |
value |
|
View Source
PropertyValue(Asset)
Declaration
public PropertyValue(Asset value)
Parameters
| Type |
Name |
Description |
| Asset |
value |
|
View Source
PropertyValue(ResourceReference)
Declaration
public PropertyValue(ResourceReference value)
Parameters
View Source
PropertyValue(bool)
Declaration
public PropertyValue(bool value)
Parameters
| Type |
Name |
Description |
| bool |
value |
|
View Source
PropertyValue(ImmutableArray<PropertyValue>)
Declaration
public PropertyValue(ImmutableArray<PropertyValue> value)
Parameters
View Source
PropertyValue(ImmutableDictionary<string, PropertyValue>)
Declaration
public PropertyValue(ImmutableDictionary<string, PropertyValue> value)
Parameters
View Source
PropertyValue(double)
Declaration
public PropertyValue(double value)
Parameters
| Type |
Name |
Description |
| double |
value |
|
View Source
PropertyValue(string)
Declaration
public PropertyValue(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Fields
View Source
Computed
Declaration
public static readonly PropertyValue Computed
Field Value
View Source
Null
Declaration
public static readonly PropertyValue Null
Field Value
Properties
View Source
Dependencies
Declaration
public ImmutableHashSet<Urn> Dependencies { get; init; }
Property Value
View Source
IsComputed
Declaration
public bool IsComputed { get; }
Property Value
View Source
IsNull
Declaration
public bool IsNull { get; }
Property Value
View Source
IsSecret
Declaration
public bool IsSecret { get; init; }
Property Value
View Source
Type
Declaration
public PropertyValueType Type { get; }
Property Value
Methods
View Source
Equals(PropertyValue?)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(PropertyValue? other)
Parameters
| Type |
Name |
Description |
| PropertyValue |
other |
An object to compare with this object.
|
Returns
| Type |
Description |
| bool |
true if the current object is equal to the other parameter; otherwise, false.
|
View Source
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
The object to compare with the current object.
|
Returns
| Type |
Description |
| bool |
true if the specified object is equal to the current object; otherwise, false.
|
Overrides
View Source
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| int |
A hash code for the current object.
|
Overrides
View Source
Match<T>(Func<T>, Func<bool, T>, Func<double, T>, Func<string, T>, Func<ImmutableArray<PropertyValue>, T>, Func<ImmutableDictionary<string, PropertyValue>, T>, Func<Asset, T>, Func<Archive, T>, Func<ResourceReference, T>, Func<T>)
Declaration
public T Match<T>(Func<T> nullCase, Func<bool, T> boolCase, Func<double, T> numberCase, Func<string, T> stringCase, Func<ImmutableArray<PropertyValue>, T> arrayCase, Func<ImmutableDictionary<string, PropertyValue>, T> mapCase, Func<Asset, T> assetCase, Func<Archive, T> archiveCase, Func<ResourceReference, T> resourceCase, Func<T> computedCase)
Parameters
Returns
Type Parameters
View Source
ToString()
Returns a string that represents the current object.
Declaration
public override string? ToString()
Returns
| Type |
Description |
| string |
A string that represents the current object.
|
Overrides
View Source
TryGetArchive(out Archive?)
Declaration
public bool TryGetArchive(out Archive? value)
Parameters
| Type |
Name |
Description |
| Archive |
value |
|
Returns
View Source
TryGetArray(out ImmutableArray<PropertyValue>)
Declaration
public bool TryGetArray(out ImmutableArray<PropertyValue> value)
Parameters
Returns
View Source
TryGetAsset(out Asset?)
Declaration
public bool TryGetAsset(out Asset? value)
Parameters
| Type |
Name |
Description |
| Asset |
value |
|
Returns
View Source
TryGetBool(out bool)
Declaration
public bool TryGetBool(out bool value)
Parameters
| Type |
Name |
Description |
| bool |
value |
|
Returns
View Source
TryGetMap(out ImmutableDictionary<string, PropertyValue>?)
Declaration
public bool TryGetMap(out ImmutableDictionary<string, PropertyValue>? value)
Parameters
Returns
View Source
TryGetNumber(out double)
Declaration
public bool TryGetNumber(out double value)
Parameters
| Type |
Name |
Description |
| double |
value |
|
Returns
View Source
TryGetResource(out ResourceReference)
Declaration
public bool TryGetResource(out ResourceReference value)
Parameters
Returns
View Source
TryGetString(out string?)
Declaration
public bool TryGetString(out string? value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Returns
View Source
WithDependencies(ImmutableHashSet<Urn>)
Declaration
public PropertyValue WithDependencies(ImmutableHashSet<Urn> dependencies)
Parameters
Returns
View Source
WithSecret(bool)
Declaration
public PropertyValue WithSecret(bool secret)
Parameters
| Type |
Name |
Description |
| bool |
secret |
|
Returns
Implements