StorageSyncServiceCreateParameters Class

public final class StorageSyncServiceCreateParameters
extends Resource

The parameters used when creating a storage sync service.

Constructor Summary

Constructor Description
StorageSyncServiceCreateParameters()

Creates an instance of StorageSyncServiceCreateParameters class.

Method Summary

Modifier and Type Method and Description
static StorageSyncServiceCreateParameters fromJson(JsonReader jsonReader)

Reads an instance of StorageSyncServiceCreateParameters from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

ManagedServiceIdentity identity()

Get the identity property: managed identities for the Storage Sync to interact with other Azure services without maintaining any secrets or credentials in code.

IncomingTrafficPolicy incomingTrafficPolicy()

Get the incomingTrafficPolicy property: Incoming Traffic Policy.

String name()

Get the name property: The name of the resource.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

Boolean useIdentity()

Get the useIdentity property: Use Identity authorization when customer have finished setup RBAC permissions.

StorageSyncServiceCreateParameters withIdentity(ManagedServiceIdentity identity)

Set the identity property: managed identities for the Storage Sync to interact with other Azure services without maintaining any secrets or credentials in code.

StorageSyncServiceCreateParameters withIncomingTrafficPolicy(IncomingTrafficPolicy incomingTrafficPolicy)

Set the incomingTrafficPolicy property: Incoming Traffic Policy.

StorageSyncServiceCreateParameters withLocation(String location)
StorageSyncServiceCreateParameters withTags(Map<String,String> tags)
StorageSyncServiceCreateParameters withUseIdentity(Boolean useIdentity)

Set the useIdentity property: Use Identity authorization when customer have finished setup RBAC permissions.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

StorageSyncServiceCreateParameters

public StorageSyncServiceCreateParameters()

Creates an instance of StorageSyncServiceCreateParameters class.

Method Details

fromJson

public static StorageSyncServiceCreateParameters fromJson(JsonReader jsonReader)

Reads an instance of StorageSyncServiceCreateParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StorageSyncServiceCreateParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

StorageSyncServiceCreateParameters.id()

Returns:

the id value.

identity

public ManagedServiceIdentity identity()

Get the identity property: managed identities for the Storage Sync to interact with other Azure services without maintaining any secrets or credentials in code.

Returns:

the identity value.

incomingTrafficPolicy

public IncomingTrafficPolicy incomingTrafficPolicy()

Get the incomingTrafficPolicy property: Incoming Traffic Policy.

Returns:

the incomingTrafficPolicy value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

StorageSyncServiceCreateParameters.name()

Returns:

the name value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

StorageSyncServiceCreateParameters.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

StorageSyncServiceCreateParameters.type()

Returns:

the type value.

useIdentity

public Boolean useIdentity()

Get the useIdentity property: Use Identity authorization when customer have finished setup RBAC permissions.

Returns:

the useIdentity value.

withIdentity

public StorageSyncServiceCreateParameters withIdentity(ManagedServiceIdentity identity)

Set the identity property: managed identities for the Storage Sync to interact with other Azure services without maintaining any secrets or credentials in code.

Parameters:

identity - the identity value to set.

Returns:

the StorageSyncServiceCreateParameters object itself.

withIncomingTrafficPolicy

public StorageSyncServiceCreateParameters withIncomingTrafficPolicy(IncomingTrafficPolicy incomingTrafficPolicy)

Set the incomingTrafficPolicy property: Incoming Traffic Policy.

Parameters:

incomingTrafficPolicy - the incomingTrafficPolicy value to set.

Returns:

the StorageSyncServiceCreateParameters object itself.

withLocation

public StorageSyncServiceCreateParameters withLocation(String location)

Overrides:

StorageSyncServiceCreateParameters.withLocation(String location)

Parameters:

location

withTags

public StorageSyncServiceCreateParameters withTags(Map<String,String> tags)

Overrides:

StorageSyncServiceCreateParameters.withTags(Map<String,String> tags)

Parameters:

tags

withUseIdentity

public StorageSyncServiceCreateParameters withUseIdentity(Boolean useIdentity)

Set the useIdentity property: Use Identity authorization when customer have finished setup RBAC permissions.

Parameters:

useIdentity - the useIdentity value to set.

Returns:

the StorageSyncServiceCreateParameters object itself.

Applies to