Class AwsMetadata.Builder (2.56.0)

public static final class AwsMetadata.Builder extends GeneratedMessageV3.Builder<AwsMetadata.Builder> implements AwsMetadataOrBuilder

AWS metadata associated with the resource, only applicable if the finding's cloud provider is Amazon Web Services.

Protobuf type google.cloud.securitycenter.v2.AwsMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllOrganizationalUnits(Iterable<? extends AwsMetadata.AwsOrganizationalUnit> values)

public AwsMetadata.Builder addAllOrganizationalUnits(Iterable<? extends AwsMetadata.AwsOrganizationalUnit> values)

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit>
Returns
Type Description
AwsMetadata.Builder

addOrganizationalUnits(AwsMetadata.AwsOrganizationalUnit value)

public AwsMetadata.Builder addOrganizationalUnits(AwsMetadata.AwsOrganizationalUnit value)

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Parameter
Name Description
value AwsMetadata.AwsOrganizationalUnit
Returns
Type Description
AwsMetadata.Builder

addOrganizationalUnits(AwsMetadata.AwsOrganizationalUnit.Builder builderForValue)

public AwsMetadata.Builder addOrganizationalUnits(AwsMetadata.AwsOrganizationalUnit.Builder builderForValue)

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Parameter
Name Description
builderForValue AwsMetadata.AwsOrganizationalUnit.Builder
Returns
Type Description
AwsMetadata.Builder

addOrganizationalUnits(int index, AwsMetadata.AwsOrganizationalUnit value)

public AwsMetadata.Builder addOrganizationalUnits(int index, AwsMetadata.AwsOrganizationalUnit value)

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Parameters
Name Description
index int
value AwsMetadata.AwsOrganizationalUnit
Returns
Type Description
AwsMetadata.Builder

addOrganizationalUnits(int index, AwsMetadata.AwsOrganizationalUnit.Builder builderForValue)

public AwsMetadata.Builder addOrganizationalUnits(int index, AwsMetadata.AwsOrganizationalUnit.Builder builderForValue)

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Parameters
Name Description
index int
builderForValue AwsMetadata.AwsOrganizationalUnit.Builder
Returns
Type Description
AwsMetadata.Builder

addOrganizationalUnitsBuilder()

public AwsMetadata.AwsOrganizationalUnit.Builder addOrganizationalUnitsBuilder()

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Returns
Type Description
AwsMetadata.AwsOrganizationalUnit.Builder

addOrganizationalUnitsBuilder(int index)

public AwsMetadata.AwsOrganizationalUnit.Builder addOrganizationalUnitsBuilder(int index)

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Parameter
Name Description
index int
Returns
Type Description
AwsMetadata.AwsOrganizationalUnit.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AwsMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AwsMetadata.Builder
Overrides

build()

public AwsMetadata build()
Returns
Type Description
AwsMetadata

buildPartial()

public AwsMetadata buildPartial()
Returns
Type Description
AwsMetadata

clear()

public AwsMetadata.Builder clear()
Returns
Type Description
AwsMetadata.Builder
Overrides

clearAccount()

public AwsMetadata.Builder clearAccount()

The AWS account associated with the resource.

.google.cloud.securitycenter.v2.AwsMetadata.AwsAccount account = 3;

Returns
Type Description
AwsMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public AwsMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AwsMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AwsMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AwsMetadata.Builder
Overrides

clearOrganization()

public AwsMetadata.Builder clearOrganization()

The AWS organization associated with the resource.

.google.cloud.securitycenter.v2.AwsMetadata.AwsOrganization organization = 1;

Returns
Type Description
AwsMetadata.Builder

clearOrganizationalUnits()

public AwsMetadata.Builder clearOrganizationalUnits()

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Returns
Type Description
AwsMetadata.Builder

clone()

public AwsMetadata.Builder clone()
Returns
Type Description
AwsMetadata.Builder
Overrides

getAccount()

public AwsMetadata.AwsAccount getAccount()

The AWS account associated with the resource.

.google.cloud.securitycenter.v2.AwsMetadata.AwsAccount account = 3;

Returns
Type Description
AwsMetadata.AwsAccount

The account.

getAccountBuilder()

public AwsMetadata.AwsAccount.Builder getAccountBuilder()

The AWS account associated with the resource.

.google.cloud.securitycenter.v2.AwsMetadata.AwsAccount account = 3;

Returns
Type Description
AwsMetadata.AwsAccount.Builder

getAccountOrBuilder()

public AwsMetadata.AwsAccountOrBuilder getAccountOrBuilder()

The AWS account associated with the resource.

.google.cloud.securitycenter.v2.AwsMetadata.AwsAccount account = 3;

Returns
Type Description
AwsMetadata.AwsAccountOrBuilder

getDefaultInstanceForType()

public AwsMetadata getDefaultInstanceForType()
Returns
Type Description
AwsMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getOrganization()

public AwsMetadata.AwsOrganization getOrganization()

The AWS organization associated with the resource.

.google.cloud.securitycenter.v2.AwsMetadata.AwsOrganization organization = 1;

Returns
Type Description
AwsMetadata.AwsOrganization

The organization.

getOrganizationBuilder()

public AwsMetadata.AwsOrganization.Builder getOrganizationBuilder()

The AWS organization associated with the resource.

.google.cloud.securitycenter.v2.AwsMetadata.AwsOrganization organization = 1;

Returns
Type Description
AwsMetadata.AwsOrganization.Builder

getOrganizationOrBuilder()

public AwsMetadata.AwsOrganizationOrBuilder getOrganizationOrBuilder()

The AWS organization associated with the resource.

.google.cloud.securitycenter.v2.AwsMetadata.AwsOrganization organization = 1;

Returns
Type Description
AwsMetadata.AwsOrganizationOrBuilder

getOrganizationalUnits(int index)

public AwsMetadata.AwsOrganizationalUnit getOrganizationalUnits(int index)

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Parameter
Name Description
index int
Returns
Type Description
AwsMetadata.AwsOrganizationalUnit

getOrganizationalUnitsBuilder(int index)

public AwsMetadata.AwsOrganizationalUnit.Builder getOrganizationalUnitsBuilder(int index)

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Parameter
Name Description
index int
Returns
Type Description
AwsMetadata.AwsOrganizationalUnit.Builder

getOrganizationalUnitsBuilderList()

public List<AwsMetadata.AwsOrganizationalUnit.Builder> getOrganizationalUnitsBuilderList()

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Returns
Type Description
List<Builder>

getOrganizationalUnitsCount()

public int getOrganizationalUnitsCount()

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Returns
Type Description
int

getOrganizationalUnitsList()

public List<AwsMetadata.AwsOrganizationalUnit> getOrganizationalUnitsList()

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Returns
Type Description
List<AwsOrganizationalUnit>

getOrganizationalUnitsOrBuilder(int index)

public AwsMetadata.AwsOrganizationalUnitOrBuilder getOrganizationalUnitsOrBuilder(int index)

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Parameter
Name Description
index int
Returns
Type Description
AwsMetadata.AwsOrganizationalUnitOrBuilder

getOrganizationalUnitsOrBuilderList()

public List<? extends AwsMetadata.AwsOrganizationalUnitOrBuilder> getOrganizationalUnitsOrBuilderList()

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnitOrBuilder>

hasAccount()

public boolean hasAccount()

The AWS account associated with the resource.

.google.cloud.securitycenter.v2.AwsMetadata.AwsAccount account = 3;

Returns
Type Description
boolean

Whether the account field is set.

hasOrganization()

public boolean hasOrganization()

The AWS organization associated with the resource.

.google.cloud.securitycenter.v2.AwsMetadata.AwsOrganization organization = 1;

Returns
Type Description
boolean

Whether the organization field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAccount(AwsMetadata.AwsAccount value)

public AwsMetadata.Builder mergeAccount(AwsMetadata.AwsAccount value)

The AWS account associated with the resource.

.google.cloud.securitycenter.v2.AwsMetadata.AwsAccount account = 3;

Parameter
Name Description
value AwsMetadata.AwsAccount
Returns
Type Description
AwsMetadata.Builder

mergeFrom(AwsMetadata other)

public AwsMetadata.Builder mergeFrom(AwsMetadata other)
Parameter
Name Description
other AwsMetadata
Returns
Type Description
AwsMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AwsMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AwsMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AwsMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AwsMetadata.Builder
Overrides

mergeOrganization(AwsMetadata.AwsOrganization value)

public AwsMetadata.Builder mergeOrganization(AwsMetadata.AwsOrganization value)

The AWS organization associated with the resource.

.google.cloud.securitycenter.v2.AwsMetadata.AwsOrganization organization = 1;

Parameter
Name Description
value AwsMetadata.AwsOrganization
Returns
Type Description
AwsMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AwsMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AwsMetadata.Builder
Overrides

removeOrganizationalUnits(int index)

public AwsMetadata.Builder removeOrganizationalUnits(int index)

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Parameter
Name Description
index int
Returns
Type Description
AwsMetadata.Builder

setAccount(AwsMetadata.AwsAccount value)

public AwsMetadata.Builder setAccount(AwsMetadata.AwsAccount value)

The AWS account associated with the resource.

.google.cloud.securitycenter.v2.AwsMetadata.AwsAccount account = 3;

Parameter
Name Description
value AwsMetadata.AwsAccount
Returns
Type Description
AwsMetadata.Builder

setAccount(AwsMetadata.AwsAccount.Builder builderForValue)

public AwsMetadata.Builder setAccount(AwsMetadata.AwsAccount.Builder builderForValue)

The AWS account associated with the resource.

.google.cloud.securitycenter.v2.AwsMetadata.AwsAccount account = 3;

Parameter
Name Description
builderForValue AwsMetadata.AwsAccount.Builder
Returns
Type Description
AwsMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AwsMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AwsMetadata.Builder
Overrides

setOrganization(AwsMetadata.AwsOrganization value)

public AwsMetadata.Builder setOrganization(AwsMetadata.AwsOrganization value)

The AWS organization associated with the resource.

.google.cloud.securitycenter.v2.AwsMetadata.AwsOrganization organization = 1;

Parameter
Name Description
value AwsMetadata.AwsOrganization
Returns
Type Description
AwsMetadata.Builder

setOrganization(AwsMetadata.AwsOrganization.Builder builderForValue)

public AwsMetadata.Builder setOrganization(AwsMetadata.AwsOrganization.Builder builderForValue)

The AWS organization associated with the resource.

.google.cloud.securitycenter.v2.AwsMetadata.AwsOrganization organization = 1;

Parameter
Name Description
builderForValue AwsMetadata.AwsOrganization.Builder
Returns
Type Description
AwsMetadata.Builder

setOrganizationalUnits(int index, AwsMetadata.AwsOrganizationalUnit value)

public AwsMetadata.Builder setOrganizationalUnits(int index, AwsMetadata.AwsOrganizationalUnit value)

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Parameters
Name Description
index int
value AwsMetadata.AwsOrganizationalUnit
Returns
Type Description
AwsMetadata.Builder

setOrganizationalUnits(int index, AwsMetadata.AwsOrganizationalUnit.Builder builderForValue)

public AwsMetadata.Builder setOrganizationalUnits(int index, AwsMetadata.AwsOrganizationalUnit.Builder builderForValue)

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

repeated .google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit organizational_units = 2;

Parameters
Name Description
index int
builderForValue AwsMetadata.AwsOrganizationalUnit.Builder
Returns
Type Description
AwsMetadata.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AwsMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AwsMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AwsMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AwsMetadata.Builder
Overrides