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.v1.AwsMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.securitycenter.v1.AwsMetadata.AwsOrganizationalUnit>
|
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
Parameter |
Name |
Description |
index |
int
|
public AwsMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public AwsMetadata build()
public AwsMetadata buildPartial()
public AwsMetadata.Builder clear()
Overrides
public AwsMetadata.Builder clearAccount()
The AWS account associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsAccount account = 4;
public AwsMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public AwsMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public AwsMetadata.Builder clearOrganization()
The AWS organization associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsOrganization organization = 2;
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
public AwsMetadata.Builder clone()
Overrides
public AwsMetadata.AwsAccount getAccount()
The AWS account associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsAccount account = 4;
public AwsMetadata.AwsAccount.Builder getAccountBuilder()
The AWS account associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsAccount account = 4;
public AwsMetadata.AwsAccountOrBuilder getAccountOrBuilder()
The AWS account associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsAccount account = 4;
public AwsMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public AwsMetadata.AwsOrganization getOrganization()
The AWS organization associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsOrganization organization = 2;
public AwsMetadata.AwsOrganization.Builder getOrganizationBuilder()
The AWS organization associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsOrganization organization = 2;
public AwsMetadata.AwsOrganizationOrBuilder getOrganizationOrBuilder()
The AWS organization associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsOrganization organization = 2;
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
Parameter |
Name |
Description |
index |
int
|
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
Parameter |
Name |
Description |
index |
int
|
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
Returns |
Type |
Description |
int |
|
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
Parameter |
Name |
Description |
index |
int
|
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
Returns |
Type |
Description |
List<? extends com.google.cloud.securitycenter.v1.AwsMetadata.AwsOrganizationalUnitOrBuilder> |
|
public boolean hasAccount()
The AWS account associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsAccount account = 4;
Returns |
Type |
Description |
boolean |
Whether the account field is set.
|
public boolean hasOrganization()
The AWS organization associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsOrganization organization = 2;
Returns |
Type |
Description |
boolean |
Whether the organization field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public AwsMetadata.Builder mergeAccount(AwsMetadata.AwsAccount value)
The AWS account associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsAccount account = 4;
public AwsMetadata.Builder mergeFrom(AwsMetadata other)
public AwsMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public AwsMetadata.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public AwsMetadata.Builder mergeOrganization(AwsMetadata.AwsOrganization value)
The AWS organization associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsOrganization organization = 2;
public final AwsMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
Parameter |
Name |
Description |
index |
int
|
public AwsMetadata.Builder setAccount(AwsMetadata.AwsAccount value)
The AWS account associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsAccount account = 4;
public AwsMetadata.Builder setAccount(AwsMetadata.AwsAccount.Builder builderForValue)
The AWS account associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsAccount account = 4;
public AwsMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public AwsMetadata.Builder setOrganization(AwsMetadata.AwsOrganization value)
The AWS organization associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsOrganization organization = 2;
public AwsMetadata.Builder setOrganization(AwsMetadata.AwsOrganization.Builder builderForValue)
The AWS organization associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsOrganization organization = 2;
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
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.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
public AwsMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final AwsMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides