Data.Cloud.AmazonAPI.LifeCycle.TAmazonLifeCycleConfiguration
Delphi
TAmazonLifeCycleConfiguration = record
private
FRules: TArray<TAmazonLifeCycleRule>;
function GetRule(AIndex: Integer): TAmazonLifeCycleRule;
function GetXML: string;
public
class function Create(ARules: TArray<TAmazonLifeCycleRule>): TAmazonLifeCycleConfiguration; static;
function AddRule(const AID: string; const APrefix: string; AStatus: boolean;
ATransitions: TArray<TAmazonLifeCycleTransition>; AExpirationDays, ANoncurrentVersionTransitionDays: Integer;
ANoncurrentVersionTransitionStorageClass: TAmazonStorageClass;
ANoncurrentVersionExpirationDays: Integer): Integer; overload;
function AddRule(const ARule: TAmazonLifeCycleRule): Integer; overload;
procedure DeleteRule(AIndex: Integer);
property Rules[Index: Integer]: TAmazonLifeCycleRule read GetRule; default;
property XML: string read GetXML;
end;
C++
struct DECLSPEC_DRECORD TAmazonLifeCycleConfiguration
{
public:
TAmazonLifeCycleRule operator[](int Index) { return this->Rules[Index]; }
private:
#ifndef _WIN64
System::DynamicArray<TAmazonLifeCycleRule> FRules;
#else /* _WIN64 */
System::TArray__1<TAmazonLifeCycleRule> FRules;
#endif /* _WIN64 */
TAmazonLifeCycleRule __fastcall GetRule(int AIndex);
System::UnicodeString __fastcall GetXML();
public:
#ifndef _WIN64
static TAmazonLifeCycleConfiguration __fastcall Create(System::DynamicArray<TAmazonLifeCycleRule> ARules);
int __fastcall AddRule(const System::UnicodeString AID, const System::UnicodeString APrefix, bool AStatus, System::DynamicArray<TAmazonLifeCycleTransition> ATransitions, int AExpirationDays, int ANoncurrentVersionTransitionDays, TAmazonStorageClass ANoncurrentVersionTransitionStorageClass, int ANoncurrentVersionExpirationDays)/* overload */;
#else /* _WIN64 */
static TAmazonLifeCycleConfiguration __fastcall Create(System::TArray__1<TAmazonLifeCycleRule> ARules);
int __fastcall AddRule(const System::UnicodeString AID, const System::UnicodeString APrefix, bool AStatus, System::TArray__1<TAmazonLifeCycleTransition> ATransitions, int AExpirationDays, int ANoncurrentVersionTransitionDays, TAmazonStorageClass ANoncurrentVersionTransitionStorageClass, int ANoncurrentVersionExpirationDays)/* overload */;
#endif /* _WIN64 */
int __fastcall AddRule(const TAmazonLifeCycleRule &ARule)/* overload */;
void __fastcall DeleteRule(int AIndex);
__property TAmazonLifeCycleRule Rules[int Index] = {read=GetRule};
__property System::UnicodeString XML = {read=GetXML};
};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
record struct |
public | Data.Cloud.AmazonAPI.LifeCycle.pas Data.Cloud.AmazonAPI.LifeCycle.hpp |
Data.Cloud.AmazonAPI.LifeCycle | Data.Cloud.AmazonAPI.LifeCycle |
Description
Class to store the lifecycle configuration.