NAME

Azure::SDK::AppConfiguration::ConfigurationSetting - App Configuration key-value

DESCRIPTION

Represents one key and optional label with its value, content type, tags, opaque quoted ETag, last-modified timestamp, and lock state.

CONSTRUCTOR

new

my $setting = Azure::SDK::AppConfiguration::ConfigurationSetting->new(
        key          => 'app/message',
        label        => 'production',
        value        => 'hello',
        content_type => 'text/plain',
        tags         => { region => 'east' },
        etag         => '"opaque-etag"',
        locked       => 0,
);

key is required. It must not be . or .., contain percent or control characters, or exceed 10 KiB. label, value, content_type, etag, and last_modified are optional scalars. tags defaults to an empty hash and is copied during construction. locked defaults to false.

ACCESSORS

key, label, value, content_type, etag, last_modified, locked

Return the corresponding setting fields. ETags remain opaque and retain the quoting required for conditional requests.

tags

Returns a copy of the setting's tag hash.

CLASS METHODS

validate_key

Validates and returns a key using the same rules as the constructor.

validate_label

Validates and returns an optional label using the same rules as the constructor.

SEE ALSO

Azure::SDK::AppConfiguration, Azure::SDK::AppConfiguration::ConfigurationSettingPage